Please find below are some of the examples for RegEx (Regular expressions - Sequence of text string for describing a search pattern),
To refer *.txt, equivalent RegEx is ^.*\.txt$
White space can be expresses as ^[ \t]+|[ \t]+$
Regards,
ADAudit Plus Team