Regular expression (?! \ \ D) What is the meaning
------ Solution -------------------------- ------------------
this is called negative lookahead , represents the right location can not figure
------ For reference only --- ------------------------------------
etc. downstairs to answer ....
------ For reference only ---------------------------------------
Do not be so wet bar . .
------ For reference only -------------------------------------- -
probably know, test it, just do the right limit , which it does not match the results
------ For reference only ---------- -----------------------------
this is a non-capturing group , not numbers match back position.
------ For reference only -------------------------------------- -
\ d matches a digit character. Equivalent to [ 0-9 ] .
(?! \ \ d) positive negative pre-investigation, the figures do not match any string of characters at the beginning of the search string match . This is a non-matching , that is, the match does not need access to for future use . For example, "Windows (95 |?! 98 | NT | 2000)" matches "Windows3.1" in the "Windows", but can not match "Windows2000" in "Windows".
------ For reference only -------------------------------------- -
upstairs positive solution. . .
没有评论:
发表评论