May I know what ?= means in a regular expression? For example, what is its significance in this expression:
?=
(?=.*d).
?= is a positive lookahead, a type of zero-width assertion. What it's saying is that the captured match must be followed by whatever is within the parentheses but that part isn't captured.
Your example means the match needs to be followed by zero or more characters and then a digit (but again that part isn't captured).
1.4m articles
1.4m replys
5 comments
57.0k users