in reply to Re^2: Regex Tool
in thread Regex Tool

That doesn't explain why its adding \< and \> in my regex.


___________
Eric Hodges

Replies are listed 'Best First'.
Re^4: Regex Tool
by Yunus (Novice) on Jul 03, 2006 at 01:41 UTC
    Uncheck the 'Begin of word' 'End of word' (last column). This is the option for word boundry. While the string boundry /line boundry set using the anchor option..

      Okay I might not have been clear. Why, in with any option checked, is it adding \<. Is that a regex command that I just don't know? The only time i've seen \< in a reged it meant a literal < not something special.


      ___________
      Eric Hodges
        Previous \<, \>, \b indicates boundry. \< is beginning of word, \> is end of word. \b indicates either boundry.
        if u just put '<' in regex, it means character '<', nothing special.

        e.g. /\<hell/ will only match such string/word like 'hello', 'hell' but not 'shell'

        however, i seldom use word anchor. (but maybe someone else does) <\em>

        I hold this statement for a while. No argument on this. I suspend these anchors ( \< , \> ) and just use \b instead. I'll be more careful next time. Sorry everyone. This information actually referred to unreliable / wrong sources. Thanks for all feedbacks.