← Galleryตรวจสอบพยัญชนะต้นตัวสะกดสระและวรรณยุกต์ไทย/[เแโไใ]{2,}|[ิีึืูุั็]{2,}|[่้๊๋]{2,}|[์]{2,}|[่้๊๋][ิีึืุูั็]|(?<![ก-ฮ][่้๊๋]?)[ิีึืุูำ็ั]|[เแโไใ][ิีึืุูั็าะำ]|(?<![ก-ฮ][ิุ]?)(?:์)|(?:ั)(?![่้๊๋]?[ก-ฮ](?![ะาิีึืุูำั็่้๊๋์อ]|ว[ก-ฮ]))|(?:ื)(?![่้๊๋]?[ก-ฮ](?![ะาิีึืุูำั็่้๊๋์]))|แ[ก-ฮ]็(?)|(?<![ก-ฮ][ิีืึุูั]?)[่้๊๋]|[เแไโใ](?![ก-ฮ])|(?:[ไใ][ก-ฮ][่้๊๋]?[ะาิีึืำั็์]|[โ][ก-ฮ][่้๊๋]?[าิีึืำั็์]|แ[ก-ฮ][่้๊๋]?[าิีืึุูำั์]|เ[ก-ฮ][่้๊๋]?[ึุูำั์])|(?<!เ[ก-ฮ]{1,2}[่้๊๋]?[าอ]|[โเแ]?[ก-ฮ]{1,2}[่้๊๋]?)ะ|(?<!เ?[ก-ฮ]{1,2}[่้๊๋]?)า|เ(?![ก-ฮ][่้๊๋]?อ?)|เ[ก-ฮ](?:ี(?![่้๊๋]?ย)|ื(?![่้๊๋]?อ))|(?:[แเโไใ][ก-ฮ]|[ก-ฮ][ิีึืุูาะ])(?:ำ)|(?:ำ)[่้๊๋]|(?<![เแไใโ][ก-ฮ]?)[ก-ฮ](?![ิีึืุู])[่้๊๋](?!(?:[ะำา]|[ว][ก-ฮ]|อ?[ก-ฦศ-ฮ](?![ะาิีึืุูำั็่้๊๋])))|เ[ก-ฮ]{1,2}(?:ิ)(?![่้๊๋]?(?:ร์)?(?:[กงดบนมลศสฟทต])(?![ะาิีึืุูำั็่้๊๋์]))|เ[ก-ฮ]{1,2}(?:็)(?!(?:[กดบงนวม])(?![ะาิีึืุูำั็่้๊๋์]))|(?<![แเไโใ][ก-ฮ]?[่้๊๋]?|[ีึืุูั][่้๊๋]?)[ก-ฦศ-ฮ]{1,2}[่้๊๋]?ว(?<![อน]ว)(?![่้๊๋ะาิีึือั์]|[กงดบนมยรล](?![ะ่้๊๋าิีึืุูำ็์]))|(?<!เ?(?:[ก-ฮ]{1,2}(?:ื?[่้๊๋็]?)?)|[เแโ])(?:อย(?!่า|ู่|าก)|อย(?:่ง|่(?!า)))/gmJavaScript+19 months ago✓ Pre-loaded
About this regex
This regex detects invalid or malformed Thai script sequences that violate Thai orthography rules, such as repeated leading vowels (เ/แ/โ/ไ/ใ), stacked vowel or tone marks, tone marks without a preceding consonant, misplaced ็/์/ั/ื, and illegal consonant-vowel combinations involving ะ, า, ำ, เ...ี, ว, or อย. It is useful for Thai spell-checking, typo detection, and validating user input where misordered vowels, tone marks, or final consonants are common typing errors.