regex-search icon indicating copy to clipboard operation
regex-search copied to clipboard

Word boundaries don't seem to work

Open kennethgillen opened this issue 9 years ago • 0 comments

Hi,

OS X 10.10.5 Chrome Version 52.0.2743.116 (64-bit) Regex Search: 1.8

Search for \bhe\b at a page like: http://www.tldp.org/HOWTO/Software-RAID-HOWTO-11.html

  • words including he like the are highlighted as matches.

I'm not sure why, but the the on this page - http://www.tldp.org/LDP/LDP-Author-Guide/html/process.html - are not matched.

Javascript regex does include word boundary \b as far as I know, so I'm not sure why it doesn't seem to work here.

What's quite odd, is that on the same page \btead\b has no matches, but tead\b correctly matches "instead". I can't imagine why "the" is matching \bhe\b, if \btead\b doesn't match "instead".

kennethgillen avatar Sep 01 '16 13:09 kennethgillen