- 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

"

\s+\\\[\s*(?P<brace_bloc>.*?)\s*\\\]\s+

"

gms

\s

matches any whitespace character (equivalent to [\r\n\t\f\v ])+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)

\\ matches the character \ with index 92_{10} (5C_{16} or 134_{8}) literally (case sensitive)

\[ matches the character [ with index 91_{10} (5B_{16} or 133_{8}) literally (case sensitive)

\s

matches any whitespace character (equivalent to [\r\n\t\f\v ])* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

Named Capture Group brace_bloc

(?P<brace_bloc>.*?)

.

matches any character *? matches the previous token between zero and unlimited times, as few times as possible, expanding as needed (lazy)

\s

matches any whitespace character (equivalent to [\r\n\t\f\v ])* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

\\ matches the character \ with index 92_{10} (5C_{16} or 134_{8}) literally (case sensitive)

\] matches the character ] with index 93_{10} (5D_{16} or 135_{8}) literally (case sensitive)

\s

matches any whitespace character (equivalent to [\r\n\t\f\v ])+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)

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)

s modifier: **s**ingle line. Dot matches newline characters

Your regular expression does not match the subject string.

No Match

r"

"

gms

Please wait while the app is loading...