Re: [Dorset] Slight OT: Regular Expressions in Winblows

2011-02-21 Thread Ralph Corderoy
Hi Terry, 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 t o work in Kate, but not in Notepad++ running under

Re: [Dorset] Slight OT: Regular Expressions in Winblows

2011-02-21 Thread Terry Coles
On Monday 21 Feb 2011, Ralph Corderoy wrote: No. Could it be that /[0-9]{4}/ worked because you were telling nano you were searching for a regexp with M-R, but when you tried /_[0-9]{4}/ you forgot to do that? The prompt for the search string says whether it's expecting a regexp or not.

Re: [Dorset] Slight OT: Regular Expressions in Winblows

2011-02-21 Thread jr
On 21 February 2011 21:38, Keith Edmunds k...@midnighthax.com wrote: On Mon, 21 Feb 2011 21:21:14 +, l...@discoverlinux.co.uk said: In vi :1,$s/_[0-9][0-9][0-9][0-9]/found/g In case it isn't clear, Vim is available on Windows as well. I know Vim isn't everyone's cup of tea (for some

Re: [Dorset] Slight OT: Regular Expressions in Winblows

2011-02-21 Thread Andrew Reid Paterson
On Monday, February 21, 2011 09:38:24 pm Keith Edmunds wrote: On Mon, 21 Feb 2011 21:21:14 +, l...@discoverlinux.co.uk said: In vi :1,$s/_[0-9][0-9][0-9][0-9]/found/g In case it isn't clear, Vim is available on Windows as well. I know Vim isn't everyone's cup of tea (for some