javascript - regex literal pattern match with multiple words -



javascript - regex literal pattern match with multiple words -

trying match literal word negative (just itself)

but regex matching on these:

negative

negative dilute

how not have not match @ when phrase negative dilute or other phrase besides negative

this in jquery , regex far this:

/\bnegative\b/i

any help appreciated.

^negative$

this match negative, , not match if there before or after it. basically, if string contains phrase , nil else.

here's site explain regex , others input: http://www.regex101.com/r/ia7fy5

javascript jquery regex

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -