Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
(?<!\\)\[(\\\[|\\\]|[^\[\]]|(?<!\\)\[.*(?<!\\)\])*(?<!\\)\]
|
Description |
This regular expression will find the highest level groups within recursive tokens. For instance, if I have "This is [just [an] example] of the [expression]", it'll find [just [an] example] and [expression], and nothing else. It will also not find an escaped bracket expression. If you want to replace the bracket with curly braces or parenthesis, be careful. As an example, curly braces will be: (?<!\\)\{(\\\{|\\\}|[^\{\}]|(?<!\\)\{.*(?<!\\)\})*(?<!\\)\}
|
Matches |
[just] | [just [an] example]
|
Non-Matches |
\[just]
|
Author |
Rating:
Joaquin Jares
|
Displaying page
of
pages;
Items to