regex - Regular expression match only if followed by something else -


i wanna match string contains ';' , ; must between words " bla ; bla" match "bla" match "bla . bla" or "bla;" wont match.

in other words ; appears if not end of string. hope clear wanted :p

try \w\s*?([;])(?=\s*?\w) match ";" preceded , followed white space , word character

enter image description here


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -