|
 |
|
regular expression เช็คภาษาไทยแต่ทำไมใส่สระ เอ ไม่ได้ |
|
 |
|
|
 |
 |
|
รองรับภาษาไทยด้วยเหรอครับ 
|
 |
 |
 |
 |
Date :
2014-01-10 11:39:58 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่าว ภาษาไทยไม่ได้หรอครับ ผมก็หาๆ มาตามเว็บอื่นๆ แหละครับ หุหุ 
|
 |
 |
 |
 |
Date :
2014-01-10 12:55:54 |
By :
chayyim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
จากโค้ดที่ผมลองก็ได้ทุกตัวนะครับ ถ้าใส่ภาษาอังกฤษปนเข้าไปมันก็ false ส่วนภาษาไทยก็ได้ทุกตัวคับ ติดตัวเดียวนั่นแหละครับ สระเอ ไม่รู้เป็นอะรายยยย
|
 |
 |
 |
 |
Date :
2014-01-10 14:41:34 |
By :
chayyim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$str='พอมีสระเอ';
ereg("^[ก-เ]+$",$str)
ลองดูครับ
|
 |
 |
 |
 |
Date :
2014-01-10 15:07:45 |
By :
TeeR |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

สรุปว่าตัวสุดท้ายของภาษาไทยคือ เ หรอครับ เหอๆ
|
 |
 |
 |
 |
Date :
2014-01-10 16:29:41 |
By :
chayyim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองใช้ตัวนี้ดูครับ
const patternTH = /^[ก-๛]+$/;
|
 |
 |
 |
 |
Date :
2018-05-22 09:43:36 |
By :
Mulware |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
[ก-๙] ใช้ได้นะ เผื่อใครเสิร์ชมา 
- 2021/08/01 -
|
 |
 |
 |
 |
Date :
2021-08-01 12:15:05 |
By :
สวัสดีเรามาจากโลกอนาคต |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
https://unicode-table.com/en/#thai
ดูตารางอักขระไทยอ้างอิงซะ มันเริ่มต้นจาก ก ไก่ แล้วไปจบที่ ๛ นี่คือทั้งหมดที่ครอบคลุม ไม่ใช่จบที่เลข ๙
|
 |
 |
 |
 |
Date :
2021-08-01 22:05:13 |
By :
mr.v |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|