PDA

View Full Version : Regular expressions


Briggykins
02-03-2009, 16:47
Having a bit of time getting a search to work in Notepad++. Basically I've got a whole list of links, however the software used to generate them got a bit confused with some of them. The two types look like this:

CORRECT: <a href="0025-0000.eml">0025-0000.eml</a>
INCORRECT: <a href="0026-0000.emlsome other stuff here">0026-0000.eml">

There are about 2000 in all and I don't want to go through them manually. I was trying a search to find all .eml*"> but that doesn't pick up any of the incorrect types, only the correct ones. I thought * found any number of any characters, but obviously I'm wrong.
Anyone able to help, or understand what I'm babbling about? :)

Cheers,

Nick

Briggykins
02-03-2009, 16:59
Ah, nm. Added a dot before the * which fixed it.

phykell
02-03-2009, 18:25
Get RegExBuddy - it's only cheap and is great for people who never had to write scripts with awk ad nauseum :thumbup: