Thread: Regex engine?
View Single Post
Old 07-08-2010, 08:01 PM   #4
troymc
Groupie
troymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enoughtroymc will become famous soon enough
 
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
Quote:
Originally Posted by capidamonte View Post
In regex, it's usually a line. A string is a, well, string of characters.

Can you define better what it is you don't understand?
It seems pretty simple. Normally ^ refers the beginning of a line. In Sigil's find/replace dialog '^A' does not find lines beginning with 'A'. (At least not for me, does it work for you?)

So it appears that, in Sigil, ^ does *not* refer to the beginning of the line - so what does it refer to?

The docs say "beginning of string" - so what's a "string"? Is QRegExp parsing a single file as a "string"? or the whole document?


Troy
troymc is offline   Reply With Quote