Finder

image.png

The Finder view lets you scan every script in your database. You can combine these options:

ButtonOptionEffect
AaCase sensitiveWhen checked, the search becomes case‑sensitive—“A” and “a” are treated as different characters.
\bWhole wordLimits results to occurrences not attached to other letters or digits. Words separated by spaces, punctuation, etc. are matched.
. *Regular expressionInterprets your query as a RegExp, giving you the full power of patterns (quantifiers, classes, anchors…). The Case sensitive and Whole word options can still be combined.

Need a refresher on RegExp syntax? A concise tutorial is available at https://regexone.com.

Regular expression example :

The following RegExp finds every select whose where clause filters on ID:

\bselect\b[^;]*(?<!\.)\bid\b

This helps you quickly spot places where you can replace first(select myTable where ID = searchId) with the faster alternative: record(myTable, searchId).

How it works step by step :

RegExp PatternExplanation
\bselect\bMatches the whole word select (prevents matching words like “selected”).
[^;]*Matches zero or more characters except ;, ensuring no semicolon appears between select and id.
(?<!\.)A negative lookbehind that asserts there is no . immediately before id.
\bid\bMatches the whole word id (prevents matching substrings like “userid” or “ident”).