I’ve always thought ST3 was missing the ability to set custom modification flags to alter the behaviour of the provided expression pattern, mostly just because we (the users) only provide the pattern, without the wrapping “/
” characters.
This afternoon I stumbled onto a SO answer where the user “MRAB” says these may be set inline in the query… For example, setting the “s
” flag to make dot match new lines as well. I then tried setting a few different flags with some simple patterns, but the common flags like “g
” or “m
” seem to cause errors that prevent any matches.
After this I went to look through both the official and unofficial documentation, but I can’t find anything about this feature in the docs. It’s possible that I’m simply searching the docs for the wrong keywords, so could somebody point me to some more information on this? Or, if it really doesn’t exist, perhaps tell me I’m not going mad (yet)?
As an alternative to my question above: is there any way to get ST3’s search bar to give us access to the full “/(...)/gmixXsuUAJD
” expression (pattern and example flags) when the “Regular Expression” search option is enabled?