regex - Regexp to start matching after a specific character -
this question has answer here:
in somexstring
it's easy find after , including 'x'.
what need find after, excluding 'x'.
... match string
in it.
try using lookbehind assertion.
(?<=x)\w+
if regex engine doesn't support lookbehind assertions, can work around using capturing groups.
x(\w+)
in above regex, string
accessed referencing \1
.
note: uses \w
capture word characters. if literally mean want capture everything use dot, .
, metacharacter instead...
(?<=x).+$
Comments
Post a Comment