Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
03/28/24 at 17:59:33
Home Help Search Login Register


Pages: 1
Send Topic Print
  Rating
Rate:
Rating:
Rating: 0.00
Votes: 0

5
4
3
2
1












5
4
3
2
1


1


2


3


4


5


6


7


8


9


10

\b and regex questions.. (Popularity: 2845 )
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post \b and regex questions..
10/31/07 at 18:45:22
 

 
\b should (ie. is supposed) to work ...
 
(but is not right now.... use \B instead [which should be opposite of \b... but isn't..])
 
PCRE is.... 100% a proper reference (maybe!).   In some versions of the extension this is the regex engine.    
 
 
current engine is actually  
 
http://www.regexlab.com/en/deelx/syntax.htm
 
 
and where
 
 
\b should mean "a BREAK in the TYPE of character".   \w = a-zA-Z_0-9   being next to anything that is not one of these is a "\b" moment.
 
note.. if \b is before say !  then  a 'break in the type of character'  would be the opposite.. ie.  if a letter or number was there...
 
 
ie. ie.   what the character to the left (or right)  has to be,  depends on the 'class' of character being tested in the regex.      it defines the point of BOUNDARY between different 'classes'.
 
 
for some reason that is what \B is meaning right now,  and \b is not supported..  
 
(this may or may not continue in future)....
 
Back to top
 
 

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