- Save Regexctrl+s
- Update Regexctrl+⇧+s

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

- Match
- Substitution
- List
- Unit Tests

Sponsor

Jamstack at Scale

/

\(([0-9])\D([0-9])\D([0-9])

/

g

\(

matches the character ( literally (case sensitive)* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

1st Capturing Group

([0-9])

Match a single character present in the list below

[0-9]

{3} matches the previous token exactly 3 times

0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)

\D

matches any character that's not a digit (equivalent to [^0-9])* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

2nd Capturing Group

([0-9])

Match a single character present in the list below

[0-9]

{3} matches the previous token exactly 3 times

0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)

\D

matches any character that's not a digit (equivalent to [^0-9])* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

3rd Capturing Group

([0-9])

Match a single character present in the list below

[0-9]

{4} matches the previous token exactly 4 times

0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)

Global pattern flags

g modifier: **g**lobal. All matches (don't return after first match)

Your regular expression does not match the subject string.Try launching the debugger to find out why.

/

/

g

Please wait while the app is loading...