in reply to Re: Re: how to find hash keys in a string ?
in thread how to find hash keys in a string ?

Thanks a lot guys
just one question though, is'\b' suppose to match 'tom' in 'stomach' ?(I m not sure about this) but isn't '\b' suppose to match things ending in word boundries ?
  • Comment on Re: Re: Re: how to find hash keys in a string ?

Replies are listed 'Best First'.
Re: Re: Re: Re: how to find hash keys in a string ?
by bart (Canon) on May 03, 2003 at 12:50 UTC
    Yes, ending and beginning with word boundaries, i.e. a transition from a word character (letter, digit or underscore) to either a non-word character, or begin or end of the whole string. /\btom\b/ will match in "foo-tom-bar" but not in "tom33".
Re: Re: Re: Re: how to find hash keys in a string ?
by LordWeber (Monk) on May 03, 2003 at 16:20 UTC