{"id":2827,"date":"2025-11-12T08:54:31","date_gmt":"2025-11-12T01:54:31","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=2827"},"modified":"2025-11-12T08:58:22","modified_gmt":"2025-11-12T01:58:22","slug":"string","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/android\/extensions\/string\/","title":{"rendered":"String"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"string\">String<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-overview\">Method Overview<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Return<\/th><\/tr><\/thead><tbody><tr><td>String.showPriceFormat()<\/td><td>\u0e41\u0e1b\u0e25\u0e07 String \u0e43\u0e2b\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e21\u0e35\u0e25\u0e39\u0e01\u0e19\u0e49\u0e32\u0e04\u0e31\u0e48\u0e19\u0e2b\u0e25\u0e31\u0e01\u0e1e\u0e31\u0e19 \u0e41\u0e25\u0e30 \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e08\u0e38\u0e14\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21\u0e44\u0e14\u0e49<\/td><td>String<\/td><\/tr><tr><td>String?.toStringWithDefaultWhenNull()<\/td><td>\u0e41\u0e1b\u0e25\u0e07 String \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e04\u0e48\u0e32 String \u0e19\u0e31\u0e49\u0e19\u0e40\u0e1b\u0e47\u0e19 null<\/td><td>String<\/td><\/tr><tr><td>String.toThaiCitizenID()<\/td><td>\u0e41\u0e1b\u0e25\u0e07\u0e04\u0e48\u0e32 String \u0e43\u0e2b\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e25\u0e02\u0e1b\u0e23\u0e30\u0e08\u0e33\u0e15\u0e31\u0e27\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19 \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e15\u0e31\u0e27\u0e04\u0e31\u0e48\u0e19\u0e44\u0e14\u0e49<\/td><td>String<\/td><\/tr><tr><td>String.getRemovedHTMLTagString()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e25\u0e1a html tag \u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01 String \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14<\/td><td>String<\/td><\/tr><tr><td>String.fromRomanToDecimal()<\/td><td>\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 String \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02 Arabic<\/td><td>String?<\/td><\/tr><tr><td>String.matchesWithRegEx()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32 String \u0e19\u0e35\u0e49 match \u0e01\u0e31\u0e1a Regular Expression \u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/td><td>Boolean<\/td><\/tr><tr><td>String.getOnlyDigit()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 Return \u0e04\u0e48\u0e32 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02(0 \u0e16\u0e36\u0e07 9)\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 String \u0e42\u0e14\u0e22\u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e19\u0e43\u0e08\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e2b\u0e23\u0e37\u0e2d\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30 \u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 0 \u0e44\u0e14\u0e49<\/td><td>String<\/td><\/tr><tr><td>String.getOnlyDoubleValue()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 Return \u0e04\u0e48\u0e32 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02(0 \u0e16\u0e36\u0e07 9)\u0e43\u0e19 String \u0e17\u0e35\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e15\u0e34\u0e14\u0e25\u0e1a\u0e41\u0e25\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21\u0e44\u0e14\u0e49<\/td><td>String<\/td><\/tr><tr><td>String.getOnlyNaturalNumber()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 Return \u0e04\u0e48\u0e32 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02(0 \u0e16\u0e36\u0e07 9)\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 String \u0e42\u0e14\u0e22\u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e19\u0e43\u0e08\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e2b\u0e23\u0e37\u0e2d\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30 \u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 0 \u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e33\u0e19\u0e27\u0e19\u0e19\u0e31\u0e1a<\/td><td>String<\/td><\/tr><tr><td>String.isInLength()<\/td><td>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/td><td>Boolean<\/td><\/tr><tr><td>String.isEmail()<\/td><td>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Email \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/td><td>Boolean<\/td><\/tr><tr><td>String.isThaiMobilePhoneNumber()<\/td><td>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c\u0e40\u0e04\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e02\u0e2d\u0e07\u0e44\u0e17\u0e22 \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/td><td>Boolean<\/td><\/tr><tr><td>String.isRomanNumerals()<\/td><td>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a \u0e2b\u0e23\u0e37\u0e2d \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/td><td>Boolean<\/td><\/tr><tr><td>String.isThaiCitizenID()<\/td><td>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e25\u0e02\u0e1a\u0e31\u0e15\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19\u0e02\u0e2d\u0e07\u0e44\u0e17\u0e22\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/td><td>Boolean<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-details\">Method Details<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.showPriceFormat(decimals : Int = 0) : String<\/code><\/pre>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 String \u0e43\u0e2b\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e21\u0e35\u0e25\u0e39\u0e01\u0e19\u0e49\u0e32\u0e04\u0e31\u0e48\u0e19\u0e2b\u0e25\u0e31\u0e01\u0e1e\u0e31\u0e19 \u0e41\u0e25\u0e30 \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e08\u0e38\u0e14\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>decimals<\/td><td>\u0e08\u0e33\u0e19\u0e27\u0e19\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21<\/td><td>Int<\/td><td>0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return String \u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e21\u0e35\u0e25\u0e39\u0e01\u0e19\u0e49\u0e33\u0e04\u0e31\u0e48\u0e19\u0e2b\u0e25\u0e31\u0e01\u0e1e\u0e31\u0e19 \u0e40\u0e0a\u0e48\u0e19 &#8220;1,0000.12&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String?.toStringWithDefaultWhenNull(defaultValue : String = \"-\") : String<\/code><\/pre>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 String \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e04\u0e48\u0e32 String \u0e19\u0e31\u0e49\u0e19\u0e40\u0e1b\u0e47\u0e19 null<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-1\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>defaultValue<\/td><td>\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e40\u0e1b\u0e47\u0e19 null<\/td><td>String<\/td><td>&#8220;-&#8220;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-1\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return \u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e40\u0e1b\u0e47\u0e19 null \u0e41\u0e25\u0e30 Return \u0e04\u0e48\u0e32 String \u0e40\u0e14\u0e34\u0e21 \u0e16\u0e49\u0e32\u0e04\u0e48\u0e32 String \u0e44\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19 null<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.toThaiCitizenID(separator : Char = ' ') : String<\/code><\/pre>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07\u0e04\u0e48\u0e32 String \u0e43\u0e2b\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e25\u0e02\u0e1b\u0e23\u0e30\u0e08\u0e33\u0e15\u0e31\u0e27\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19 \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e15\u0e31\u0e27\u0e04\u0e31\u0e48\u0e19\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-2\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>separator<\/td><td>\u0e15\u0e31\u0e27\u0e04\u0e31\u0e48\u0e19\u0e43\u0e19\u0e40\u0e25\u0e02\u0e1a\u0e31\u0e15\u0e23\u0e1b\u0e23\u0e30\u0e08\u0e33\u0e15\u0e31\u0e27\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19<\/td><td>String<\/td><td>&#8216; &#8216;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-2\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return String \u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e23\u0e2b\u0e31\u0e2a\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19\u0e17\u0e35\u0e48\u0e21\u0e35\u0e15\u0e31\u0e27\u0e04\u0e31\u0e48\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e01\u0e33\u0e2b\u0e19\u0e14<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.getRemovedHTMLTagString() : String<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e25\u0e1a html tag \u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01 String \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-3\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return String \u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e25\u0e1a html tag \u0e2d\u0e2d\u0e01<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.fromRomanToDecimal() : String?<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 String \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02 Arabic<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-4\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String?<\/td><td>Return String \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02 Arabic \u0e16\u0e49\u0e32 String \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e16\u0e49\u0e32 String \u0e44\u0e21\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e2b\u0e23\u0e37\u0e2d \u0e40\u0e01\u0e34\u0e14 Error \u0e08\u0e30 Return null<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.matchesWithRegEx(regex : String) : Boolean<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32 String \u0e19\u0e35\u0e49 match \u0e01\u0e31\u0e1a Regular Expression \u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-3\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><\/tr><\/thead><tbody><tr><td>regex<\/td><td>Regular Expression \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a<\/td><td>String<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-5\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Boolean<\/td><td>Return&nbsp;<code>true<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String match \u0e01\u0e31\u0e1a RegEx \u0e41\u0e25\u0e30 Return&nbsp;<code>false<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e44\u0e21\u0e48 match \u0e01\u0e31\u0e1a RegEx<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.getOnlyDigit() : String<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 Return \u0e04\u0e48\u0e32 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02(0 \u0e16\u0e36\u0e07 9)\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 String \u0e42\u0e14\u0e22\u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e19\u0e43\u0e08\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e2b\u0e23\u0e37\u0e2d\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30 \u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 0 \u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-6\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return String \u0e17\u0e35\u0e48\u0e21\u0e35\u0e41\u0e15\u0e48\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e40\u0e25\u0e22<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.getOnlyDoubleValue() : String<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 Return \u0e04\u0e48\u0e32 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02(0 \u0e16\u0e36\u0e07 9)\u0e43\u0e19 String \u0e17\u0e35\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e15\u0e34\u0e14\u0e25\u0e1a\u0e41\u0e25\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-7\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return String \u0e17\u0e35\u0e48\u0e21\u0e35\u0e41\u0e15\u0e48\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e34\u0e14\u0e25\u0e1a \u0e41\u0e25\u0e30 \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.getOnlyNaturalNumber() : String<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 Return \u0e04\u0e48\u0e32 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02(0 \u0e16\u0e36\u0e07 9)\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 String \u0e42\u0e14\u0e22\u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e19\u0e43\u0e08\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e2b\u0e23\u0e37\u0e2d\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30 \u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 0 \u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e33\u0e19\u0e27\u0e19\u0e19\u0e31\u0e1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-8\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String<\/td><td>Return String \u0e17\u0e35\u0e48\u0e21\u0e35\u0e41\u0e15\u0e48\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e42\u0e14\u0e22\u0e08\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30\u0e40\u0e25\u0e22 \u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e02\u0e36\u0e49\u0e19\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22 0 \u0e44\u0e14\u0e49<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.isInLength(minLength : Int , maxLength : Int) : Boolean<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-4\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><\/tr><\/thead><tbody><tr><td>minLength<\/td><td>\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e19\u0e49\u0e2d\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14<\/td><td>Int<\/td><\/tr><tr><td>maxLength<\/td><td>\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e21\u0e32\u0e01\u0e2a\u0e38\u0e14<\/td><td>Int<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-9\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Boolean<\/td><td>Return&nbsp;<code>true<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 \u0e41\u0e25\u0e30 Return&nbsp;<code>false<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e44\u0e21\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.isEmail() : Boolean<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Email \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-10\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Boolean<\/td><td>Return&nbsp;<code>true<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07 Email \u0e41\u0e25\u0e30 Return&nbsp;<code>false<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e44\u0e21\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07 Email<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.isThaiMobilePhoneNumber() : Boolean<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c\u0e40\u0e04\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e02\u0e2d\u0e07\u0e44\u0e17\u0e22 \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-11\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Boolean<\/td><td>Return&nbsp;<code>true<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c\u0e21\u0e37\u0e2d\u0e16\u0e37\u0e2d \u0e41\u0e25\u0e30 Return&nbsp;<code>false<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e44\u0e21\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c\u0e21\u0e37\u0e2d\u0e16\u0e37\u0e2d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.isRomanNumerals() : Boolean<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a \u0e2b\u0e23\u0e37\u0e2d \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-12\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Boolean<\/td><td>Return&nbsp;<code>true<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19 \u0e41\u0e25\u0e30 Return&nbsp;<code>false<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e44\u0e21\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e25\u0e02\u0e42\u0e23\u0e21\u0e31\u0e19<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>fun String.isThaiCitizenID() : Boolean<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 String \u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e25\u0e02\u0e1a\u0e31\u0e15\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19\u0e02\u0e2d\u0e07\u0e44\u0e17\u0e22\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-13\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Boolean<\/td><td>Return&nbsp;<code>true<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e25\u0e02\u0e1a\u0e31\u0e15\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19 \u0e41\u0e25\u0e30 Return&nbsp;<code>false<\/code>&nbsp;\u0e40\u0e21\u0e37\u0e48\u0e2d String \u0e44\u0e21\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e25\u0e02\u0e1a\u0e31\u0e15\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":2748,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-2827","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=2827"}],"version-history":[{"count":3,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2827\/revisions"}],"predecessor-version":[{"id":2830,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2827\/revisions\/2830"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2748"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=2827"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=2827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}