regex - Regexp to start matching after a specific character -


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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -