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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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