
yanirdz
New User
Jan 20, 2010, 5:46 AM
Post #1 of 1
(4221 views)
|
|
\W+ work and \b don't
|
Can't Post
|
|
Text: ins("word2 asfasf ins ("word2 asfasf ins opt ("word5 asdfasdf ins opt("word5 asdfasdf i want to catch word2 and word 5. using RegExp: /ins(?:\bopt)?\W+(\w+)\b/g ->>>> Works /ins(?:\bopt)?\b(\w+)\b/g ->>>> Don't works so why \W+ work and \b don't?
|