Regex negative match query

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-25T14:28:16Z Indexed on 2010/03/25 14:33 UTC
Read the original article Hit count: 492

Filed under:
|
|
|

Hey guys,

I've got a regex issue, Im trying to ignore just the number '41', I want 4, 1, 14 etc to all match.

I've got this [^\b41\b] which is effectively what I want but this also ignores all single iterations of the values 1 and 4.

As an example, this matches "41", but I want it to NOT match: \b41\b

© Stack Overflow or respective owner

Related posts about regex

Related posts about match