<div dir="ltr"><br><div dir="ltr"><br></div><br>
<br><br><div class="gmail_quote">On Wed, Apr 6, 2011 at 01:48, Ben Smith <span dir="ltr"><<a href="mailto:ben.smith.lists@gmail.com">ben.smith.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Does the Regex unit included with FCL support word boundaries? eg: the<br>
\b tag as used by some other regex libraries. If the Regex unit does<br>
support it, what syntax must I use?<br>
<br>
I know about the ^ (beginning of line) and $ (for end of line), but<br>
that is not what I'm looking for, because the words I want to match<br>
might appear in the middle of the text.<br></blockquote><div><br>What's wrong with /a word/ (without the slash) ?<br>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 efficient then regex.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888"><br>
--<br>
<br>
Ben.<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</font></blockquote></div><br><br>Ido<br clear="all">LINESIP - Opening the source for communication<br><a href="http://www.linesip.com/" target="_blank">http://www.linesip.com</a><br><a href="http://www.linesip.co.il/" target="_blank">http://www.linesip.co.il</a><br>
</div>