I am using TeXStudio as my editor.
I encounter some difficulties in finding the regular expressions that can match strings occupying several lines.
For example, I need a regular expression that matches the patter $...$, namely anything (including line breaks) enclosed by two $'s.
I tried the regular expression \$[\s\S]*\$, but it only works when there is no line break between the two $'s. On the other hand, when I test this regular expression on the following website, this regular expression works for line breaks.
I would like to know what is special about regular expressions in TeXStudio.