character | describe |
---|
\ | Marks the next character as a special character, or a literal character, or a backward reference, or an octal escape character. For example, "n" matches the character "n". " n" matches a newline character. The sequence "\" matches "" and " (" matches " ("). |
---|
^ | Matches the starting position of the input string. If the Multiline property of the RegExp object is set, ^ also matches the position after " n" or " r". |
---|
$ | Matches the end position of the input string. If the RegExp object's Multiline property is set, $ also matches the position before "\n" or "\r". |
---|
* | Matches the preceding subexpression zero or more times. For example, zo * can match "z" and "zoo". * is equivalent to {0,}. |
---|
+ | + + 1 |
---|
? | 1 |
---|
| n အမှတ် မဟုတ်-negative integer. Matches certain n times. For example, "o {2" does not match the "o" in "Bob", but it does match two o's in "food". |
---|
{n,} | n အမှတ် မဟုတ်-negative integer. Matches at least n times. For example, "o {2,}" does not match "o" in "Bob", but does match all o in "foooood". "o {1,}" is equivalent to "o +". "o {0,}" is equivalent to "o *". |
---|
{n,m} | m and n are both non-negative integers, where n <= m. Match at least n times and at most m times. For example, "o {1,3}" will match the first three o's in "fooooood". "o {0,}1}" is equivalent to "o?". Note that there can be no spaces between commas and two numbers. |
---|
? | When the character immediately follows any other constraint(*,+,?،{n},{n,},{n,m}), တွေ့ရှိမှု ပုံစံ သည် မပျက်သေးသည်။ မပျက်သေးသော ပုံစံ သည် ရှာဖွေသော စကားလုံး ကို အနည်းဆုံး တွေ့ရှိသည်။ အခြား ပုံစံ အခြား အကြောင်းအရာ တစ်ခု နောက် ရှိ သော အကြောင်းအရာ အပါအဝင်။ ဥပမာ၊ စကားလုံး "oooo" +?" will match a single "o", and "o +" will match all "o". |
---|
. | Matches any single character except " n". To match any character including " n", use a pattern like "[.n]". |
---|
(pattern) | Matches the pattern and gets the match. The obtained match can be obtained from the resulting Matches collection, using the SubMatches collection in VBScript and the 0 dollars... 9 dollars attribute in JScript. To match parenthesis characters, use " (" or ") ". |
---|
(?:pattern) | Matches a pattern but does not obtain a match result, that is, it is a non-fetching match and is not stored for later use. This is useful when using the or character " (|) " to combine parts of a pattern. For example, "industr (?: y | ies) " is a shorter expression than "industry | industries". |
---|
(?=pattern) | Forward lookup matches the lookup string at the beginning of any string that matches the pattern. This is a non-fetch match, ထို့ကြောင်း၊ နောက်ထပ် အသုံးပြုရန် တွေ့ရှိမှု ကို တွေ့ရှိရသည်။ ဥပမာ၊ "Windows (? = 95 | 98 | NT | 2000) " matches "Windows" in "Windows2000", သို့မဟုတ် "Windows" တွင် "Windows"3.1". တွေ့ရှိမှု ကို အကျိုး မပြုချေ၊ ထို့ကြောင်း၎င်း၊ တွေ့ရှိမှု ဖြစ်ပွားပြီးနောက် နောက်ထပ် တွေ့ရှိမှု ကို ပြီး အကျိုး ကျန်ရှိသော ကုက္ခ ပြီးနောက် မကြာခင် စတင်ကြသည်။ |
---|
(?!pattern) | Negative lookup matches the lookup string at the beginning of any string that does not match the pattern. This is a non-fetch match, that is, the match does not need to be fetched for later use. For example, "Windows (?! 95 | 98 | NT | 2000) " matches "Windows" in "Windows3.1", but not "Windows" in "Windows2000". A lookup does not consume characters, that is, after a match occurs, the search for the next match starts immediately after the last match, rather than after the character containing the lookup. |
---|
x|y | Matches x or y. For example, "z | food" matches "z" or "food". " (z | f) ood" matches "zood" or "food". |
---|
[xyz] | Character set. Matches any character contained. For example, "[abc]" matches "a" in "plain". |
---|
[^xyz] | Set of negative characters. Matches any character not contained. For example, "[^ abc]" matches "p" in "plain". |
---|
[a-z] | Character range. Matches any character in the specified range. For example, "[a-z]" can match any lowercase character in the range "a" to "z". |
---|
[^a-z] | Negative character range. Matches any character not in the specified range. For example, "[^ a-z]" can match any character not in the range "a" to "z". |
---|
\b | Matches a word boundary, which refers to the position between the word and the space. For example, "er b" can match "er" in "never", but not "er" in "verb". |
---|
\B | Matches non-word boundaries. "er B" matches "er" in "verb", but not "er" in "never". |
---|
\cx | Matches the control character specified by x. For example, cM matches a Control-M or carriage return. The value of x must be either A-Z or a-z. Otherwise, c is treated as a literal "c" character. |
---|
\d | Matches a numeric character. Equivalent to [0-9]. |
---|
\D | Matches a non-numeric character. Equivalent to [^ 0-9]. |
---|
\f | အပ်လျက် စာလုံး အရေးယူရသည်။ အကြီးတန်း အရေးယူရသည်။ |
---|
\n | အပ်လျက် စာလုံး အရေးယူရသည်။ အကြီးတန်း အရေးယူရသည်။ |
---|
\r | Matches a carriage return. Equivalent to \x0d and \cM. |
---|
\s | Matches any whitespace character, including spaces, tabs, page feeds, etc. Equivalent to [\f\n\r\t\v]. |
---|
\S | Matches any non-whitespace character. Equivalent to [^\f\n\r\t\v]. |
---|
\t | Matches a tab. Equivalent to \x09 and \cI. |
---|
\v | Matches a vertical tab. Equivalent to \x0b and \cK. |
---|
\w | Matches any word character that includes an underscore. Equivalent to "[A-Za-z0-9_]". |
---|
\W | Matches any non-word character. Equivalent to "[^ A-Za-z0-9_]". |
---|
\xn | Matches n, where n is the hexadecimal escape value. The hexadecimal escape value must be the length of the identified two numbers. For example, " \x41" matches "A". " \x041" is equivalent to " \x04 & 1". ASCII encoding can be used in regular expressions.. |
---|
\num | Matches num, where num is a positive integer. A reference to the match obtained. For example, " (.) 1" matches two consecutive identical characters. |
---|
\n | Identifies an octal escaped value or a backwards reference. If \n is preceded by at least n acquired subexpressions, then n is a backwards reference. Otherwise, if n is an octal number (0-7), then n is an octal escaped value. |
---|
\nm | Identifies an octal escape value or a backwards reference. Nm is a backwards reference if nm is preceded by at least nm acquirer expressions. If \nm is preceded by at least n acquirers, then n is a backwards reference followed by the literal m. If neither of the preceding conditions is met, if both n and m are octal digits (0-7), then nm will match the octal escape value nm. |
---|
\nml | If n is an octal digit (0-3), and both m and l are octal digits (0-7), နှင့် အကြိမ် နှင့် အရှည် အသုံးပြုသော နှုတ်ချခြင်း ကို ကိုက်ညီပါသည်。 |
---|
\un | မြောက်မြား n ကို ယူရိုဒီယို ကို လွှမ်းမိုးသော အင်္ဂါပုံ အထောင်ဒါ ဖြစ်သည်။ ဥပမာ\ u00A9 မူပိုင်ခွင့် အကိရိက် (©) နှင့် ကိုက်ညီပါသည်。 |
---|