DataFlex Studio Search regex tips

From DataFlex Wiki
Revision as of 14:41, 24 December 2021 by Wil (talk | contribs) (Created page with "'' Tips from Marco '' The DataFlex Studio has the possibility to use regular expressions in the Find dialog. This opens the possibility to search for very specific things. ==== Find <xx> Table ==== Useful is <source lang="dataflex"> find .. Customer </source> where the . is any character, so eq gt ge etc. If you also have and would like to find any number of spaces then you can extend it by \s for a space character followed by one or more with a + <source lang=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Tips from Marco

The DataFlex Studio has the possibility to use regular expressions in the Find dialog.

This opens the possibility to search for very specific things.


Find <xx> Table

Useful is


find .. Customer

where the . is any character, so eq gt ge etc.

If you also have and would like to find any number of spaces then you can extend it by \s for a space character followed by one or more with a +


find\s+..\s+customer


Looking for a function that as a number as the parameter

function .* number .* returns

Basically, the . is any character and the * is any occurrence of the previous character. So it is matching:

"function"
space
any characters
"number"
space
any characters
space
"returns"