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,}. |
---|
+ | Matches the preceding subexpression one or more times. For example, "zo +" matches "zo" and "zoo", but not "z". + is equivalent to {1,}. |
---|
? | Matches the preceding subexpression zero or once. For example, "do (es)?" can match "do" in "do" or "does".? is equivalent to {0,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". |
---|
{ਨ,} | ਨ ਇੱਕ ਗ਼ੈਰ ਪ੍ਰਤੀਯੋਗੀ ਸੰਖਿਆ ਹੈ-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". |
---|
. | 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 | اینٹی وی | 2000) " میں "ویندوز" میں "ویندوز2000", ਪਰ "Windows" ਵਿੱਚ "Windows" ਨਹੀਂ ਹੈ。3.1". ਇੱਕ ਲੁਕਅੱਪ ਅੱਖਰਾਂ ਨੂੰ ਖਪਾਉਂਦਾ ਨਹੀਂ ਹੈ, ਯਾਨੀ ਜਦੋਂ ਮੇਲ ਹੁੰਦਾ ਹੈ, ਅਗਲੇ ਮੇਲ ਦੀ ਖੋਜ ਪਿਛਲੇ ਮੇਲ ਦੇ ਬਾਅਦ ਹੀ ਸ਼ੁਰੂ ਹੁੰਦੀ ਹੈ, ਨਹੀਂ ਕਿ ਲੁਕਅੱਪ ਵਾਲੇ ਅੱਖਰ ਦੇ ਬਾਅਦ。 |
---|
(?!پٹرن) | ناقص لکچر ماتچ کسی ناپٹر نہ کئے جانے والی کسی کوئی بھی رکن میں لکچر کی شروعات کو ماتچ کرتیا ہے. یہ ایک ن-فٹچ ماتچ، یعنی ماتچ کو بعد میں استعمال کیلئے نہیں لایا جاتا. مثلاً "ویندوز (?! 95 | 98 | اینٹی وی | 2000) " میں "ویندوز" میں "ویندوز3.1", لیکن نہیں "ویندوز" میں "ویندوز2000". ایک لکچر کے بعد کو چارکرت نہیں کھا جاتا، یعنی ماتچ کے بعد اگلے ماتچ کی تلاش، پچھلے ماتچ کے بعد سے شروع ہوتی ہے، نہ کہ لکچر کا چارکرت کے بعد. |
---|
x|y | کسے یا ی کا ماتچ کرتیا ہے. مثلاً "ز | فود" میں "ز" یا "فود" کا ماتچ کرتیا ہے. " (ز | ف) اود" میں "زود" یا "فود" کا ماتچ کرتیا ہے. |
---|
[xyz] | چارکرت سیٹ. کسی چارکرت کو ماتچ کرتیا ہے جو شامل ہوتا ہے. مثلاً "[abc]" میں "پلین" میں "ا" کا ماتچ کرتیا ہے. |
---|
[^xyz] | ناقص چارکرت کا سیٹ. کسی چارکرت کو ماتچ کرتیا ہے جو شامل نہیں ہوتا. مثلاً "[^ ا بی سی]" میں "پلین" میں "پ" کا ماتچ کرتیا ہے. |
---|
[ا-ز] | چارکرت رینج. کسی چارکرت کو ماتچ کرتیا ہے جو مذکورہ رینج میں آتا ہے. مثلاً "[ا-ز]" میں "ز" کا ماتچ کرتیا ہے جو "ز" سے لے کر "ز" تک کی رینج میں آتی ہے. |
---|
[^ا-ز] | ناقص چارکرت رینج. کسی چارکرت کو ماتچ کرتیا ہے جو مذکورہ رینج میں نہیں آتا. مثلاً "[^ ا"-ز]" میں "ز" کا ماتچ کرتیا ہے جو "ز" سے لے کر "ز" تک کی رینج میں نہیں آتی ہے. |
---|
\b | ورڈ بینری ماتچ کرتیا ہے، جو لفظ اور اسپیس کے درمیان کی پوزیشن کا حوالہ دیتا ہے. مثلاً "ر ب" میں "نوروورب" میں "ر" کا ماتچ کرتیا ہے، لیکن "ورب" میں نہیں. |
---|
\B | نوئی-ورڈ بینریاں. "ر ب" میں "ورب" میں "ر" کا ماتچ کرتیا ہے، لیکن "نوروورب" میں نہیں. |
---|
\cx | کو کٹرول چارکرت ماتچ کرتیا ہے جو ایکس کا ذکر کردار کا ہوتا ہے. مثلاً سی ایم کو کٹرول ایم کا ماتچ کرتیا ہے.-ایم یا کارریج ریٹرن. ایکس کی کا اقدار یا تو اے یا بی کا ہونا چاہئیے.-ز یا ا-ز. دیگر طرح میں سی کو حقیقی "سی" چارکرت کے طور پر بنا دیا جاتا ہے. |
---|
\d | نمبر چارکرت ماتچ کرتیا ہے. اس کا مساوی [0-9]. |
---|
\D | نوئی-نمبر چارکرت. اس کا مساوی [^ 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" ਦੋ ਲਗਾਤਾਰ ਇੱਕੋ ਜਿਹੇ ਅੰਕਾਂ ਨੂੰ ਮੇਲ ਖਾਂਦਾ ਹੈ。 |
---|
\n | ਇੱਕ ਦਸ ਨੰਬਰ ਐਸਕੇਪ ਮੁੱਲ ਜਾਂ ਪਿੱਛਲੀ ਸਬੰਧੀ ਨੂੰ ਪਛਾਣਦਾ ਹੈ। ਜੇਕਰ \n ਤੋਂ ਪਹਿਲਾਂ ਤਕ ਹੁਣੇ ਹੁਣੇ n ਅਕਵਾਇਰਰ ਸਬੰਧੀ ਹਨ, ਤਾਂ n ਪਿੱਛਲੀ ਸਬੰਧੀ ਹੈ। ਹੋਰਵਾਂ, ਜੇਕਰ n ਦਸ ਨੰਬਰ ਹੈ (0-7), ਤਾਂ n ਦਸ ਨੰਬਰ ਐਸਕੇਪ ਮੁੱਲ ਹੈ。 |
---|
\nm | ਇੱਕ ਦਸ ਨੰਬਰ ਐਸਕੇਪ ਮੁੱਲ ਜਾਂ ਪਿੱਛਲੀ ਸਬੰਧੀ ਨੂੰ ਪਛਾਣਦਾ ਹੈ। Nm ਪਿੱਛਲੀ ਸਬੰਧੀ ਹੁੰਦੀ ਹੈ ਜੇਕਰ nm ਤੋਂ ਪਹਿਲਾਂ ਤਕ ਹੁਣੇ ਹੁਣੇ nm ਅਕਵਾਇਰਰ ਐਕਸਪ੍ਰੈਸ਼ਨਾਂ ਹਨ। ਜੇਕਰ \nm ਤੋਂ ਪਹਿਲਾਂ ਤਕ ਹੁਣੇ ਹੁਣੇ n ਅਕਵਾਇਰਰ ਹਨ, ਤਾਂ n ਪਿੱਛਲੀ ਸਬੰਧੀ ਹੈ ਅਤੇ ਉਸ ਦੇ ਬਾਅਦ ਲਿਖਤੀ m ਹੈ। ਜੇਕਰ ਇਹ ਦੋਵੇਂ ਪਹਿਲਾਂ ਦੇ ਸ਼ਰਤਾਂ ਨਹੀਂ ਪੂਰੇ ਹੁੰਦੇ ਹਨ, ਜੇਕਰ ਦੋਵੇਂ n ਅਤੇ m ਦਸ ਨੰਬਰ ਅੰਕ ਹਨ (0-7), ਤਾਂ nm ਦਸ ਨੰਬਰ ਐਸਕੇਪ ਮੁੱਲ nm ਨਾਲ ਮੇਲ ਖਾਂਦਾ ਹੈ. |
---|
\nml | ਜੇਕਰ n ਦਸ ਨੰਬਰ ਅੰਕ ਹੈ (0-3), ਅਤੇ ਦੋਵੇਂ m ਅਤੇ l ਦਸ ਨੰਬਰ ਅੰਕ ਹਨ (0-7), ਦਸ ਨੰਬਰ ਐਸਕੇਪ ਮੁੱਲ nml ਨਾਲ ਮੇਲ ਖਾਂਦਾ ਹੈ. |
---|
\un | ਮੈਚ n, ਜਿੱਥੇ n ਚਾਰ ਹੈਕਸੀਡੈਸਿਮਲ ਅੰਕਾਂ ਰਾਹੀਂ ਪ੍ਰਤੀਨਿਧਿਤ ਯੂਨੀਕੋਡ ਅੰਕ ਹੈ। ਉਦਾਹਰਣ ਵਜੋਂ, \ u00A9 ਕਾਪੀਰਾਈਟ ਸਿੰਬਲ (©) ਨਾਲ ਮੇਲ ਖਾਂਦਾ ਹੈ. |
---|