Jump to content

In regular expressions, "?=" is _not_ correct -- "?" is a quantifier, I think you mean "(?=...)" -which must include the parens


ckollars

Recommended Posts

In http://www.w3schools...exp_nfollow.asp (and elsewhere), ?= is listed as a "quantifier", but this is not accurate. ?= is neither called a "quantifier", nor even works. (The "quantifier" is the single character ?, it means apply the quantity "0 or 1 times" to whatever's at left.) Your "reference" seems to be incorrect here. What ?= really is is part of the regular expression construct (?=...) (note the syntax is incomplete and doesn't work without the required parens). (A parallel regular expression construct, for "not equals" rather than "equals" is (?!...)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...