- Save Regexctrl+s
- Go to library entry

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

- Match
- Substitution
- List
- Unit Tests

Sponsor

Jamstack at Scale

/

(\d{4})-(\d{2})-(\d{1,2}) (\d{2}):(\d{2}):(\d{2}).(\d{3})

/

gm

1st Capturing Group

(\d{4})

\d

matches a digit (equivalent to [0-9]){4} matches the previous token exactly 4 times

- matches the character - with index 45_{10} (2D_{16} or 55_{8}) literally (case sensitive)

2nd Capturing Group

(\d{2})

\d

matches a digit (equivalent to [0-9]){2} matches the previous token exactly 2 times

- matches the character - with index 45_{10} (2D_{16} or 55_{8}) literally (case sensitive)

3rd Capturing Group

(\d{1,2})

\d

matches a digit (equivalent to [0-9]){1,2} matches the previous token between 1 and 2 times, as many times as possible, giving back as needed (greedy)

matches the character with index 32_{10} (20_{16} or 40_{8}) literally (case sensitive)

4th Capturing Group

(\d{2})

\d

matches a digit (equivalent to [0-9]){2} matches the previous token exactly 2 times

: matches the character : with index 58_{10} (3A_{16} or 72_{8}) literally (case sensitive)

5th Capturing Group

(\d{2})

\d

matches a digit (equivalent to [0-9]){2} matches the previous token exactly 2 times

: matches the character : with index 58_{10} (3A_{16} or 72_{8}) literally (case sensitive)

6th Capturing Group

(\d{2})

\d

matches a digit (equivalent to [0-9]){2} matches the previous token exactly 2 times

. matches any character (except for line terminators)

7th Capturing Group

(\d{3})

\d

matches a digit (equivalent to [0-9]){3} matches the previous token exactly 3 times

Global pattern flags

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

m modifier: **m**ulti line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)

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

/

/

gm

Processing...

Please wait while the app is loading...