How to search multiple text files for numeric values only?

General discussions about Advanced Find and Replace
Post Reply
duckpin
Posts: 1
Joined: Tue Feb 08, 2005 2:38 pm

How to search multiple text files for numeric values only?

Post by duckpin » Mon Apr 04, 2005 1:20 pm

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!!!!!!!

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Mon Apr 04, 2005 1:41 pm

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.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests