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

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

- Match
- Substitution
- List
- Unit Tests

Sponsor

Jamstack at Scale

/

[ ]*(.+):[ ]*\n?((?:.+\n?[^\s])*)

/

gm

Match a single character present in the list below

[ ]

* matches the previous token between zero and unlimited 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)

1st Capturing Group

(.+)

.

matches any character (except for line terminators)+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)

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

Match a single character present in the list below

[ ]

* matches the previous token between zero and unlimited 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)

\n

matches a line-feed (newline) character (ASCII 10)? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)

2nd Capturing Group

((?:.+\n?[^\s])*)

Non-capturing group

(?:.+\n?[^\s])*

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

.

matches any character (except for line terminators)+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)

\n

matches a line-feed (newline) character (ASCII 10)? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)

Match a single character not present in the list below

[^\s]

\s matches any whitespace character (equivalent to [\r\n\t\f\v ])

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

Please wait while the app is loading...