వివరణరెగ్యులర్ ఎక్స్ప్రెషన్
వెబ్సైట్ (URL)[a-zA-z]+://^[^\s]*
IP చిహ్నం((2[0-4]\d|25[0-5]|[01)?\d\d?)\.){3}2[0-4]\d|25[0-5]|[01]?\d\d?)
ఇమెయిల్ చిహ్నం\w+([-+.]\w+)*@\w+([-.]\w+)*\.(\w+([-.]\w+)*
QQ నంబర్[1-9]\d{4,}
HTML మార్కప్ (కంటెంట్ లేదా సెల్ఫ్-మూసిన చిహ్నం)<(*)(*)>.*<\/\1>|<(*) \/>
పాస్వర్డ్ (అంకెలు ఉంటాయి/క్యాపిటల్ అక్షరాలు/lowercase letters/పంక్టుషన్ మార్క్స్, నాలుగు అన్ని లభించాయి, మరింత 8 అంకెలు)(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?=.*[A-Z)(?=.*[a-z)(?!.*\n).*$
తేదీ (సంవత్సర-నెల-రోజు)(\d{4}|\d{2)-((1[0-2)|(0?[1-9))-(([12][0-9))|(3[01)|(0?[1-9))
తేదీ (నెల/రోజు/సంవత్సర)((1[0-2)|(0?[1-9))/(([12][0-9))|(3[01)|(0?[1-9))/(\d{4}|\d{2)
సమయ (గంటల్లో: నిమిషాల్లో, 24-గంటల గంటలో((1|0?)[0-9]|2[0-3]:([0-5][0-9]
చైనీస్ (అక్షరం)[\u4e00-\u9fa5]
చైనీస్ మరియు పూర్ణ-వైడ్ పంక్టుషన్ మార్క్స్ (అక్షరాలు)[\u3000-\u301e\ufe10-\ufe19\ufe30-\ufe44\ufe50-\ufe6b\uff01-\uffee]
చైనా ముఖ్యమైన ఫోన్ నంబర్(\d{4}-|\d{3}-)?(\d{8}|\d{7)
చైనా ముఖ్యమైన మొబైల్ ఫోన్ నంబర్1\d{10}
చైనా ముఖ్యమైన పిన్ కోడ్[1-9]\d{5}
చైనా ముఖ్యమైన ఐడి నంబర్ (15 లేదా 18 అంకెలు)\d{15})(\d\d[0-9xX])?
నాన్-నెగేటివ్ ఇంటిజర్ (పజిటివ్ ఇంటిజర్ లేదా నలుపు)\d+
పజిటివ్ ఇంటిజర్[0-9]*[1-9][0-9]*
నెగేటివ్ ఇంటిజర్-[0-9]*[1-9][0-9]*
ఇంటిజర్-?\d+
డిసీమల్(-?\d+)(\.\d+)?
అక్షరాలు abc లేని పదాలు\b((?!abc)\w)+\b
వివరణరెగ్యులర్ ఎక్స్ప్రెషన్
యూజర్ నేమ్/^[a-z0-9_-]{3,16$/
పాస్వర్డ్/^[a-z0-9_-]{6,18$/
హెక్సాడెసిమల్ విలువ/^#?([a-f0-9]{6}|[a-f0-9]{3})$/
E-మెయిల్ చిహ్నం/^([a-z0-9_\.-]+)@([\da-z\.-]+]\.([a-[\2,6})$/
URL/^(https?:\/\/)?([\da-z\.-]+]\.([a-[\2,6})/\w \.-]*)*\/?$/
IP చిహ్నం/^((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9}325[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
HTML tag/^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/
Range of Chinese characters in Unicode encoding/^[u4e00-u9fa5],{0,}$/
Regular expressions that match Chinese characters[\u4e00-\u9fa5]
Comment: Matching Chinese is really a headache. With this expression, it's easy to handle
Match double-byte characters (including Chinese characters)[^\x00-\xff]
Comment: Can be used to calculate the length of a string (2 for a double-byte character, 1 for ASCII characters)
Regular expression that matches blank lines\n\s*\r
Notes: Can be used to delete blank lines
హ్ట్మ్ఎల్ టాగ్లను సరిపోలుతుంది రెగ్యులర్ ఎక్స్ప్రెషన్<(\S*?)[^>]*>.*<?/\1>|<.*?/>
గమనిక: ఇంటర్నెట్లో విస్తరించిన వెర్షన్ చాలా మంచిది. పైనివి మాత్రమే సరిపోలుతుంది, మరియు కూడా కఠినమైన అంచులు పై బలహీనంగా ఉంటుంది.
ప్రథమ మరియు చివరి ప్రాంతాలను సరిపోలుతుంది రెగ్యులర్ ఎక్స్ప్రెషన్^\s*|\s*$
గమనిక: ఒక పంక్తి ప్రాంతాలను ఉపసంహరించడానికి ఉపయోగపడుతుంది (అంటే అంతరాంకాలు, టాబులేషన్, పేజీ బ్రేక్లు మరియు ఇతర అంతరాంకాలు ఉంటే అవి అనుమతించబడతాయి), ఒక చాలా ఉపయోగపడుతున్న ఎక్స్ప్రెషన్
ఇమెయిల్ చిహ్నాలను సరిపోలుతుంది రెగ్యులర్ ఎక్స్ప్రెషన్\w+([-+.]\w+)*@\w+([-.]\w+)*\.(\w+([-.]\w+)*
గమనిక: ఫారమ్ పరిశీలనకు ఉపయోగపడుతుంది
రెగ్యులర్ ఎక్స్ప్రెషన్ సరిపోలుతుంది యూఆర్ఎల్[a-zA-z]+://^[^\s]*
గమనిక: ఇంటర్నెట్లో విస్తరించిన వెర్షన్ చాలా పరిమిత ఫంక్షన్లు కలిగి ఉంటుంది, మరియు పైనివి ప్రధానంగా అవసరాలను తీరుస్తాయి.
ఖాతా నుండి లెగల్ అయినా సరిపోలుతుంది (అక్షరంతో మొదలుపెడుతుంది, అనుమతిస్తుంది 5-16 బైట్లు, అక్షరాంశాలు మరియు అంకెలను అనుమతిస్తుంది)^[a-zA-Z][a-zA-Z0-9_]{4,15$
గమనిక: ఫారమ్ పరిశీలనకు ఉపయోగపడుతుంది
దేశీయ ఫోన్ నంబర్లను సరిపోలుతుంది\d{3}-\d{8}|\d{4}-\d{7}
గమనిక: 0 వంటి సరిపోలు రూపాలను సరిపోలుతుంది511-4405222 లేదా 021-87888822
టెంక్ క్వ్ నంబర్ సరిపోలుతుంది[1-9][0-9]{4,}
గమనిక: టెంక్ క్వ్ నంబర్ మొదలుకు ఉంటుంది 10000
చైనా ముఖ్యంగా పోస్టల్ కోడ్ సరిపోలుతుంది[1-9]\d{5}(?!\d)
గమనిక: చైనా ముఖ్యంగా పోస్టల్ కోడ్ ఉంది 6 నంబర్లు
ఐడి సరిపోలుతుంది\d{15}|\d{18}
గమనిక: చైనా ముఖ్యంగా ఐడి కార్డు ఉంది 15 లేదా 18 నంబర్లు
ఐపి చిహ్నం సరిపోలుతుంది\d+.\d+.\d+.\d+
గమనిక: ఐపి చిహ్నాలను ఉపసంహరించడానికి ఉపయోగపడుతుంది
ప్రత్యేక సంఖ్యలను సరిపోలుతుంది:
match floating1-9]\d*$//పోజిటివ్ అంతరాంకం సరిపోలుతుంది
^-[1-9]\d*$//నెగటివ్ అంతరాంకం సరిపోలుతుంది
^-?[1-9]\d*$//అంతరాంకం సరిపోలుతుంది
match floating1-9]\d*|0$Match non-నెగటివ్ అంతరాంకాలు (పోజిటివ్ అంతరాంకాలు + 0)
^-[1-9]\d*|0$Match non-పోజిటివ్ అంతరాంకాలు (నెగటివ్ అంతరాంకాలు + 0)
match floating1-9]\d*.\d*|0\.\d*[1-9]\d*$//Match positive floating-point numbers
^-([1-9]\d*.\d*|0\.\d*[1-9]\d*Match positive floating//)$-point numbers
^-match negative floating1-9]\d*.\d*|0\.\d*[1-9]\d*^[+?([//|0)$-point numbers
match floating1-9]\d*.\d*|0\.\d*[1-9]\d*^[+|0$Match non-|0?\.0-point numbers (positive floating-point numbers + 0)
^(-([1-9]\d*.\d*|0\.\d*[1-9]\d*))|0?\.0+|0$Match non-positive floating-point numbers (negative floating-point numbers + 0)
Notes: Useful when dealing with large amounts of data, pay attention to corrections in specific applications.
Match specific strings
^[A-Za-z]+$//Match a string of 26 English letters
^[A-Z]+$//Matches a string of 26 English letters
^[a-z]+$//Matches a string of 26 lowercase letters
^[A-Za-z0-9]+$//Match a string of numbers and 26 letters
^\w+$//Matches a string consisting of numbers, 26 letters, or underscores
characterdescribe
\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}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}),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 | 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లేదా y. ఉదాహరణకు, "z | food" "z" లేదా "food" ను ముట్టుకుంటుంది. " (z | f) ood" "zood" లేదా "food" ను ముట్టుకుంటుంది.
[xyz]అక్షర జంట. ఉన్న ఏ అక్షరాన్నికూడా ముట్టుకుంటుంది. ఉదాహరణకు, "[abc]" "plain" లో "a" ను ముట్టుకుంటుంది.
[^xyz]నకారిక అక్షర జంట. ఉన్న ఏ అక్షరాన్నికూడా ముట్టుకుంటుంది. ఉదాహరణకు, "[^ abc]" "plain" లో "p" ను ముట్టుకుంటుంది.
[a-z]అక్షర పరిధి. పేరుగా ఉన్న ఏ అక్షరాన్నికూడా ముట్టుకుంటుంది. ఉదాహరణకు, "[a-z]" పరిధిలో ఉన్న ఏ చిన్న అక్షరాన్నికూడా ముట్టుకుంటుంది.
[^a-z]నకారిక అక్షర పరిధి. పేరుగా ఉన్న ఏ అక్షరాన్నికూడా ముట్టుకుంటుంది. ఉదాహరణకు, "[^ a-z]" సరిహద్దులో ఉన్న ఏ అక్షరాన్నికూడా ముట్టుకుంటుంది.
\bపద సరిహద్దును ముట్టుకుంటుంది, ఇది పదం మరియు అంతరం మధ్య స్థానాన్ని సూచిస్తుంది. ఉదాహరణకు, "er b" "never" లో "er" ను ముట్టుకుంటుంది, కానీ "verb" లో "er" ను ముట్టుకుంటుంది కాదు.
\Bనాన్-పద సరిహద్దులు. "er B" "verb" లో "er" ను ముట్టుకుంటుంది, కానీ "never" లో "er" ను ముట్టుకుంటుంది కాదు.
\cxx యొక్క నియంత్రణ కారకంను ముట్టుకుంటుంది. ఉదాహరణకు, cM నియంత్రణ కారకంను ముట్టుకుంటుంది.-M లేదా కారెజ్ రిటర్న్. x యొక్క విలువ లేదా A-Z లేదా a-z. లేకపోతే, c నిజమైన "c" అక్షరంగా చేయబడుతుంది.
\dనంబరిక అక్షరం. [0 సమానం.-9].
\Dనాన్-నంబరిక అక్షరం. [^ 0 సమానం.-9].
\fపేజీ ఫీడ్ కారకం. \x0c మరియు \cL సమానం.
\nక్రమబద్ధమైన కారకం ముగించు. \x0a మరియు \cJ సమానం.
\rMatches a carriage return. Equivalent to \x0d and \cM.
\sMatches any whitespace character, including spaces, tabs, page feeds, etc. Equivalent to [\f\n\r\t\v].
\Sమ్యాచ్ ఏదైనా నాన్--whitespace character. Equivalent to [^\f\n\r\t\v].
\tMatches a tab. Equivalent to \x09 మరియు \cI.
\vమ్యాచ్ వర్గం కింది టాబ్. అనగా \x0b మరియు \cK.
\wమ్యాచ్ ఏదైనా వర్డ్ చారక్టర్ తో ఉన్నది. అనగా "[A-Za-z0-9_]".
\Wమ్యాచ్ ఏదైనా నాన్--వర్డ్ చారక్టర్. అనగా "[^ A-Za-z0-9_]".
\xnమ్యాచ్ n, అనగా n హెక్సడీసిమల్ ఎస్కేప్ విలువ. హెక్సడీసిమల్ ఎస్కేప్ విలువ గుర్తించిన రెండు సంఖ్యల పొడవులో ఉండాలి. ఉదాహరణకు, " \x41" అనగా " \x041" అనగా " \x04 & 1". రెగ్యులర్ ఎక్స్ప్రెషన్స్ లో ఆస్కియోన్ ఎంకోడింగ్ ఉపయోగించవచ్చు.
\numమ్యాచ్ నమ్, అనగా నమ్ ఒక సంఖ్యలు. సరిపోయిన మ్యాచ్ ప్రతినిధీకరణ. ఉదాహరణకు, " (.) 1" రెండు తరచుగా అదే అక్షరాలను ముక్తిస్తుంది.
\nఆక్టల్ ఎస్కేప్ విలువను లేదా బ్యాక్వర్స్ రిఫరెన్స్ గుర్తిస్తుంది. ఇది \n కి ముందు కనిస్తున్న n అక్వైర్డ్ సబ్ ఎక్స్ప్రెషన్స్ కనిస్తున్నప్పుడు, అప్పుడు n బ్యాక్వర్స్ రిఫరెన్స్. లేకపోతే, అనగా n ఆక్టల్ సంఖ్య (0-7), అప్పుడు n ఆక్టల్ ఎస్కేప్ విలువగా ఉంటుంది.
\nmఆక్టల్ ఎస్కేప్ విలువను లేదా బ్యాక్వర్స్ రిఫరెన్స్ గుర్తిస్తుంది. Nm బ్యాక్వర్స్ రిఫరెన్స్ అయినప్పుడు nm కి ముందు కనిస్తున్న nm అక్వైరర్ ఎక్స్ప్రెషన్స్ కనిస్తున్నాయి. ఇది \nm కి ముందు కనిస్తున్న n అక్వైరర్స్ కనిస్తున్నప్పుడు, అప్పుడు n బ్యాక్వర్స్ రిఫరెన్స్ తరువాత లిటెరల్ m ఉంటుంది. ఇది ముంది పరిస్థితులలో ఎక్కడా సరిపోనిది, అప్పుడు n మరియు m ఆక్టల్ డిజిట్లు (0-7), అప్పుడు nm ఆక్టల్ ఎస్కేప్ విలువను సరిపోతుంది.
\nmlఅనగా n ఆక్టల్ డిజిట్ ఉంటే-3), మరియు మరియు l ఆక్టల్ డిజిట్లు (0-7), ఆక్టల్ ఎస్కేప్ విలువ నమ్మలు సరిపోతుంది.
\unమ్యాచ్ n, అనగా n నాలుగు హెక్సడీసిమల్ డిజిట్లతో ప్రతినిధీకరించే యూనికోడ్ అక్షరం. ఉదాహరణకు, \ u00A9 కాపీరైట్ సంకేతం (©)తో సరిపోతుంది.
మీ కాలి పాదాలు: