Re: [fpc-pascal] regex unit and word boundaries

2011-04-06 Thread Ben Smith
On Wed, Apr 6, 2011 at 9:32 AM, ik wrote: > > What's wrong with /a word/ (without the slash) ? Sorry, I don't understand. > But if the word can exists in a middle of a text, and you do not look for a > pattern, then regex is not what you should use, but "pos" instead. Because > pos is more effic

Re: [fpc-pascal] regex unit and word boundaries

2011-04-06 Thread ik
On Wed, Apr 6, 2011 at 01:48, Ben Smith wrote: > Hi, > > Does the Regex unit included with FCL support word boundaries? eg: the > \b tag as used by some other regex libraries. If the Regex unit does > support it, what syntax must I use? > > I know about the ^ (beginning of line) and $ (for end of

[fpc-pascal] regex unit and word boundaries

2011-04-05 Thread Ben Smith
Hi, Does the Regex unit included with FCL support word boundaries? eg: the \b tag as used by some other regex libraries. If the Regex unit does support it, what syntax must I use? I know about the ^ (beginning of line) and $ (for end of line), but that is not what I'm looking for, because the wor