I'm looking at the following regular expression and wondering if it is:
- testing for last of input?
- testing for something else?
(? =. *\d)
I'm looking at the following regular expression and wondering if it is:
(? =. *\d)
It means lookahead assertion
A lookahead assertion has the form (?= test) and can appear anywhere in a regular expression. MATLAB® looks ahead of the current location in the text for the test condition. If MATLAB matches the test condition, it continues processing the rest of the expression to find a match.
NOTE: The ? character may also be used as a quantifier.
Regular expression syntax cheatsheet
This page provides an overall cheat sheet of all the capabilities of RegExp syntax by aggregating the content of the articles in the RegExp guide. If you need more information on a specific topic, please follow the link on the corresponding heading to access the full Info