Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
12/05/24 at 12:28:01
News: If you outline, checkout the new outlineZOOM extension. Amazing stuff to instantly bring your ideas into focus.
Home Help Search Login Register


Pages: 1
Send Topic Print
RegEx, predefined classe \b (wordboundary) (Popularity: 4936 )
JohnSmith
EccoMagic Apprentice
*


I Love Ecco!

Posts: 6
Show the link to this post RegEx, predefined classe \b (wordboundary)
11/19/09 at 06:41:36
 
Just have noticed that in regex expression (EccoExt v4.0.0.5) , predefined classe \b don't work, a \\b is required to make it work.
 
e.g. rule function match('checking RegEx','\bReg') returns empty string
 
to make it work use '\\b' instead of '\b', e.g. match('checking RegEx','\\bReg') returns 'Reg'.
 
Best Regards,
JS
 
Back to top
 
 
  IP Logged
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post Re: RegEx, predefined classe \b (wordboundary)
Reply #1 - 11/19/09 at 15:54:12
 

this is (at least in part) due to the regex engine itself.    
 
1.  can use \B  in place of \b   (which is as Regex  technically backwards,  \B should be NOT a boundary ... but then again...)
 
2. double slash  "\\"   is interpreted as single slash.   (if you *want* double slash,  eg., literal slash,  must use four slashes, "\\\\"
 
 
(untested if issue 2 is local extension or regex engine issue)
Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print