Introduction to Regular Expression Testing Tools

The regular expression testing tool provides you with JS regular expression verification, regular expression verification, regular expression verification, regular expression testing tools, which can be used to customize regular expressions to extract text content, validate arbitrary regular expressions, extract URLs from regular expressions, and format regular expressions online. I hope it will be helpful to everyone.


The role of regular expressions

A regular expression is a text pattern that includes ordinary characters (for example, letters between a and z) and special characters (called "metacharacters"). Regular expressions use a single string to describe and match a series of strings that match a certain syntactic rule. Regular expressions are cumbersome, but they are powerful. After learning them, they will give you an absolute sense of achievement in addition to improving efficiency. Many programming languages support string operations using regular expressions.

common metacharacters
codeexplain
.Matches any character except newline characters
\wMatch letters or numbers or underscores
\sMatches any whitespace
\dmatch number
\bMatch the beginning or end of a word
^Start of matching string
$Match end of string
common qualifier
Code/Syntaxexplain
*Repeat zero or more times
+Repeat one or more times
?Repeat zero or once
{n}Repeat n times
{n,}Repeat n or more times
{n,m}రిపీట్ నుండి ముందుకు వరకు వరుసగా రిపీట్
common antonym
Code/Syntaxexplain
\WMatches any character that is not a letter, number, underscore, or kanji
\SMatches any character that is not a whitespace character
\DMatches any non-numeric characters
\BMatch is not where words begin or end
[^x]Matches any character except x
[^aeiou]Matches any character except the letters aeiou

Regular Expression Reference Encyclopedia

characterdescribe
^\d+$Match non-negative integers (positive integers + 0)
//Matches the integer ^\d+(\.\d+)?$Match non-negative floating-point numbers (positive floating-point numbers + 0)
^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$//Match positive floating-point numbers
^((-\d+(\.\d+)?)|(0+(\.0+)?))$Match non-positive floating-point numbers (negative floating-point numbers + 0)
^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$//match negative floating-point numbers
^(-?\d+(\.\d+)?$//match floating-point numbers
^[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
^[\w-]+(\.[\w-]+)*@\w-]+(\.[\w-]+)+$//match email address
^[a-zA-z]+://match(\w+(-\w+)*)(\.(\w+(-\w+)*))*(\?\S*)?$//match url
[\u4e00-\u9fa5]రెగ్యులర్ ఎక్స్ప్రెషన్లు చైనీజ్ అక్షరాలను మ్యాచ్ చేయండి
[^\x00-\xff]డబుల్ మ్యాచ్ చేయండి-బైట్ చిహ్నాలు (చైనీజ్ అక్షరాలు సహా)
\n[\s| ]*\rరెగ్యులర్ ఎక్స్ప్రెషన్ బ్లాంక్ లైన్స్ మ్యాచ్ చేయండి
/<(.*)>.*<\/>|<(.*)\/>/రెగ్యులర్ ఎక్స్ప్రెషన్లు మ్యాచ్ చేసే HTML టాగ్లు
^(\s*)|(\s*$)రెగ్యులర్ ఎక్స్ప్రెషన్లు మ్యాచ్ చేసే అంతం-to-end spaces
\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*రెగ్యులర్ ఎక్స్ప్రెషన్ ఫార్మాట్ ఇమెయిల్ చిహ్నాలు
^[a-zA-z]+://(\w+(-\w+)*)(\.(\w+(-\w+)*))*(\?\S*)?$రెగ్యులర్ ఎక్స్ప్రెషన్ మ్యాచ్ యూఆర్ఎల్
^[a-zA-Z][a-zA-Z0-9_]{4,15}$అకౌంట్ న్యాయవంతమా అని మ్యాచ్ చేయండి (అక్షరంతో మొదలవుతుంది, అనుమతిస్తారు 5-16 బైట్స్, అక్షరాలు మరియు అంక్షరాలు ఉండే అండర్స్కోర్లు)
(\d{3}-|\d{4}-)?(\d{8}|\d{7})?దేశీయ ఫోన్ నంబర్లను మ్యాచ్ చేయండి
^[1-9]*[1-9][0-9]*$టెంక్సెంట్ QQ సంఖ్యను మ్యాచ్ చేయండి
మీ కాలి అడుగులు: