+1 vote

Version 8.4 (2823) Feature release (14 May 2018) has introduced new feature: Regex expression naming, e.g. REGEX:ssn “\d{3}-?\d{2}-?\d{4}”

How can I use it? Can you give examples where it adds value? In what part of the search string can I refer to the regex name?

Attempting to search at https://help.mythicsoft.com/filelocatorpro/en/index.html fails, no hits about 'regex expression naming'. Maybe good idea to update the documentation as well...

Thanks!

by (220 points)

1 Answer

+2 votes
 
Best answer

The naming feature is intended for reporting. The default name for on the Keyword Report is the actual expression itself, which for a large expression would be difficult to read. For example:

Keyword Name                               Count  
                                              
\d{3}-?\d{2}-?\d{4}                        6,416  
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b  714    

Looks much better as:

Keyword Name  Count  
                 
SSN           6,416  
Email         714  
by (29.1k points)
...