Hi,

I wanted to search and relace a string of the form '_nnnn' (eg _4023) in a 
large text file at work today.  I'm not skilled in the art of constructing 
Regular Expressions, so I went on the web and researched what I needed to 
type.

Simple I thought; the expression I want is '_[0-9]{4}'.  However, the only 
thing I could get to work, using Notepad++ and MS Visual Studio Find tools, 
was '_[0-9][0-9][0-9][0-9]'.  Here at home I can get my original expression to 
work in Kate, but not in Notepad++ running under wine.  So! I thought; this is 
a Windows thing.  But I can't get it to work in nano either, although '[0-9]
{4}' finds any 4 digits, but '_[0-9]{4}' won't find four digits with a 
preceding underscore.

What's the obvious thing I'm missing?

-- 
                Terry Coles
                64 bit computing with Kubuntu Linux


--
Next meeting:  Blandford Forum, Wednesday 2011-03-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to