Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Save & Share

  • Save Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python 2.7
  • Golang
  • Java 8

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
(3|4)((\.)|(\.[0-9]))|(5(\.)0)
/
1st Alternative
(3|4)((\.)|(\.[0-9]))
1st Capturing Group
(3|4)
1st Alternative
3
3 matches the character 3 literally (case sensitive)
2nd Alternative
4
4 matches the character 4 literally (case sensitive)
2nd Capturing Group
((\.)|(\.[0-9]))
1st Alternative
(\.)
3rd Capturing Group
(\.)
\.
matches the character . literally (case sensitive)
? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
2nd Alternative
(\.[0-9])
4th Capturing Group
(\.[0-9])
\. matches the character . literally (case sensitive)
Match a single character present in the list below
[0-9]
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
2nd Alternative
(5(\.)0)
5th Capturing Group
(5(\.)0)
5 matches the character 5 literally (case sensitive)
6th Capturing Group
(\.)
\.
matches the character . literally (case sensitive)
? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
0
matches the character 0 literally (case sensitive)
? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
Your regular expression does not match the subject string.

Regular Expression
No Match

/
/

Test String