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


Comments
Post a Comment