MemoryRefresh!

Egrep / Word boundaries     Word boundaries



Questions Answers 0%

Pages   0 from 15
Questions   0 from 20

Reset


A common problem
A regex that match a word can also match it embedded within a larger word. /cat/ matches twice in "cat category"
Metasequence b
You can use metasequences \b if is supported by your software, like /\b(cat)\b/
1) Match the word "cat" in "cat category"








A common problem
A regex that match a word can also match it embedded within a larger word. /cat/ matches twice in "cat category"
Metasequence b
You can use metasequences \b if is supported by your software, like /\b(cat)\b/

References









Programming

Php
   
Regex
   
MySQL
   
Css
   
jQuery
   
Git
   


References