Copy link to clipboard
Copied
Found a stray GREP style in my document and unsure what this does. Appreciate your help decoding.
(?s)\[.+?\]
It applies a character style of choice to anything between [square brackets], including the brackets.
The code "(?s)" at the front is a dummy; it does not work inside GREP Styles.
For deciphering GREP, use What the Grep script, written by Jongware.
Copy link to clipboard
Copied
It applies a character style of choice to anything between [square brackets], including the brackets.
The code "(?s)" at the front is a dummy; it does not work inside GREP Styles.
Copy link to clipboard
Copied
For deciphering GREP, use What the Grep script, written by Jongware.
Copy link to clipboard
Copied
Heh heh 😀 was not on my computer at the mo' but thanks for mentioning it!
Copy link to clipboard
Copied
Thanks _Jongware_ and Kasyan_Servetsky! No wonder I couldn't find anything on (?s) anywhere. New to GREP.