Monday, February 14, 2011

Regular Expression Help

Programmer Question

Trying to match a strings in notepad++ with a regular expression.



The string I'm trying to match is formatted like this:



^*^1st Choice Housing. Inc~*~


The carets and tildes serve as the delimiters around the name.



Here's the regular expression I'm trying to use to match any string between the delimiters



\^\*\^([A-Za-z0-9-.]+)\~\*\~


Notepad++ says 0 matches. What is wrong with my regular expression?



If I use:



\^\*\^1st Choice Housing. Inc\~\*\~


It matches.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails