496Re: [NTS] Trying to perfect RegExp to match various numbers
- Mar 29, 2011Hi Joy,
A caret inside a character class negates the character class. Outside of
a character class it indicates BOL (beginning of the the line). Avoid
making the very first character of a pattern a caret, because NoteTab
Pro (but not Std or Lite) sometimes advances the cursor before testing
the regex if it is.
Sounds like you wanted to match whole lines with one in, so you could do
Hope that helps. I've escaped the plus and the period in character
classes above, which is my habit but isn't strictly necessary. It is
necessary to escape a hyphen in a character class.
- << Previous post in topic Next post in topic >>