asked on
ASKER
ASKER
(?=.*first thing)(?=.*second thing)(?=.*etc)
^(?=.*first thing)(?=.*second thing)(?=.*etc)
\d{2,4} \s (?:\d\d\d|\d\d\d\d\d\d) \s \d\d\d\d
Since \s includes the space character, what are you matching with "\s "?
ASKER
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.
TRUSTED BY
ASKER
What I'd like to do (if possible), is find ALL occurrences of multiple Regex's in the target text string... hopefully all in one pass. For example, I am really just searching for phone numbers. I would like to find all the 10 digit numbers, all the 11 digit numbers and all the 12 digit numbers in the target text string. Three very simple regex's like this:
\d\d\d \s \d\d\d \s \d\d\d\d (ie. 10 digits)
\d\d\d\d \s \d\d\d \s \d\d\d\d (ie. 11 digits)
\d\d \s \d\d\d\d\d\d \s d\d\d\d (ie. 12 digits)
is it possible with the BRRE engine (or any engine) to "run" all these regex's against a target text string in one go? In other words, so only one pass of the data is needed? Or do I have to run Regex # 1 against the text string, get the result... then run Regex # 2 against the same text string again, get the result... and then finally run Regex # 3 against the same text string?
Thanks!
Shawn