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 * * |
---|
+ | + + 1 |
---|
? | 1 |
---|
| n은 비교적 숫자입니다-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}), the matching pattern is non greedy. The non greedy mode matches the searched string as little as possible, while the default greedy mode matches the searched string as much as possible. For example, for string "oooo", "o +?" will match a single "o", and "o +" will match all "o". |
---|
. | 任何一个字符(除了" n")进行匹配。要匹配任何字符包括" n",请使用类似于"[.n]"的模式。 |
---|
(pattern) | 패턴과 일치하고 일치를 얻습니다. 얻은 일치는 결과 Matches 컬렉션에서 VBScript의 SubMatches 컬렉션을 사용하여 얻을 수 있습니다. 0 dollars... 9 JScript의 dollars 속성입니다. 괄호 문자를 일치시키려면 "(" 또는 ")"를 사용합니다. |
---|
(?:pattern) | 패턴과 일치하지만 일치 결과를 얻지 않습니다. 즉, 이는 비-fetching match이며 나중에 사용하기 위해 저장되지 않습니다. 이는 패턴의 일부를 결합하기 위해 "or" 문자 "|"를 사용할 때 유용합니다. 예를 들어, "industr (?: y | ies) "는 "industry | industries"보다 짧은 표현입니다. |
---|
(?=pattern) | Forward lookup은 패턴과 일치하는 어떤 문자의 시작 부분에 있는 검색 문자와 일치합니다. 이는 비-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 또는 a-z. 그렇지 않으면 c는 문자 "c"로 처리됩니다. |
---|
\d | 숫자 문자와 일치합니다. [0과 동일합니다.-9]. |
---|
\D | 비숫자 문자와 일치합니다.-숫자 문자. [^ 0과 동일합니다.-9]. |
---|
\f | 페이지 피드 문자와 일치합니다. \x0c와 \cL와 동일합니다. |
---|
\n | 줄 바꿈 문자와 일치합니다. \x0a와 \cJ와 동일합니다. |
---|
\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-단어 문자. "[^ A-Za-z0-9_]". |
---|
\xn | n과 일치하며, n은 16진수 응축 값입니다. 16진수 응축 값은 식별된 두 숫자의 길이여야 합니다. 예를 들어, " \x41"와 일치합니다. " \x041"는 " \x04 & 1". 정규 표현식에서 ASCII 인코딩을 사용할 수 있습니다. |
---|
\num | num과 일치하며, num은 양수 정수입니다. 일치한 매칭에 대한 참조. 예를 들어, " (.) 1"는 연속적으로 동일한 두 문자와 일치합니다. |
---|
\n | 8진수 응축 값 또는 후행 참조를 식별합니다. \n이 n 획득 서브 표현식에 앞서 있으면, n은 후행 참조입니다. 그렇지 않으면, n이 8진수 숫자(0-7), 그러면 n은 8진수 응축 값입니다. |
---|
\nm | 8진수 응축 값 또는 후행 참조를 식별합니다. nm이 nm 획득 표현식에 앞서 있으면 nm은 후행 참조입니다. \nm이 n 획득자에 앞서 있으면, n은 후행 참조이며 그 뒤에 literal m이 따릅니다. 이전 조건 중 어느 하나도 만족되지 않으면, n과 m이 모두 8진수 숫자(0-7), 그러면 nm은 8진수 응축 값 nm과 일치합니다. |
---|
\nml | n이 8진수 숫자(0-3), 그리고 m과 l은 8진수 숫자(0-7), 8진 응축 값 nml과 일치합니다. |
---|
\un | n과 일치하며, n은 네 개의 힙셀리터로 표현된 유니코드 문자입니다. 예를 들어, \ u00A9 저작권 기호(©)와 일치합니다. |
---|