View Single Post
Old 01-07-2012, 09:05 PM   #54
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Jabby View Post
Are you saying that if I set up a Regex expression and get a count and then use this expression to do a F&R I could get a different replace count depending on the cursor position. I would think that sort of thing should be avoided.
Yes because regexes can be variable length. For example:

Code:
start ... stuff ... start ... stuff ... end ... stuff ... end
You can construct an expression to match everything between "start" and "end". Since there is a "start" and "end" nested inside of a "start" and "end" you will get one match if you start looking at the very beginning and a completely different match if you start looking between the first and second "start".
user_none is offline