You can do minimal matching using either:
- put a ? after the + or * to make it un-greedy as theducks said
- put a (?U) at the start of your regular expression as Toxaris says
I recommend using Regex DotAll so that your regex's automatically extend over multiple lines, which is generally what's needed.
If you use Replace, then the search will just wrap around now to allow you to search the whole document.
Count/Replace All cover the whole document and ignore Direction.
Last edited by meme; 03-16-2012 at 02:54 PM.
Reason: slow typing
|