Page 1 of 1

How to search multiple text files for numeric values only?

Posted: Mon Apr 04, 2005 1:20 pm
by duckpin
the problem is my entire database of text files may be corrupt. I need
to search each text file for lines of code containing NO TEXT or NUMBERS ONLY.

basically:
X10Y10
X05Y03
X023465Y12344
935
X12
X13Y40

I need to identify the files which only have "935" (example of no text)

Please help!!!!!!!

Posted: Mon Apr 04, 2005 1:41 pm
by Abacre
Hi,

It's pretty easy:

Go to Batch replace tab

check ON: "Use regular expressions" and "Just Find options"
put the text into Search for field:
^\d+$

So, some explanations:
^ - begin of line
$ - end of line
\d - numeric char
\d+ - one or more numeric chars

Modifier S should be OFF.

I verified it works fine.