last day (14 days later) » 

10:15 AM
RE: ..."
@Ωmega could you please include something about the u modifier and it's impact on \w in this answer stackoverflow.com/a/11874899 ?"
\w and \b work same way with Unicode, so Unicode modifier does not change the functionality of \w and \b
 
I thought that \w with u modifier would also match something like é
 
if it is a word with space/modifier and/or beginning/end of line before and after, then yes...
 
It's more like the answer says "\w stands for "word character", usually [A-Za-z0-9_]. Notice the inclusion of the underscore and digits." while this is true, it could match more than just ascii letters/digits with the "u" modifier
 
\w without Unicode modifier is [a-zA-Z0-9_]
 
Anyways, I've included your answer in this reference under "\w" gist.github.com/Hamz-a/1662d09db09156e8b2b0
 
10:20 AM
but with Unicode character it represents letters, numbers and underscore
even special Unicode numbers, not just those ASCII
Feel free to add some comments to my ansfer
One important issue: Java supports Unicode for \b but not for \w
PCRE has full support
 
I should try find an answer on \w and it's behavior with "u", that's the point of a reference: link to existing Q&A
 
...
Good luck
 
thanks
 
cyaa
 

last day (14 days later) »