How can I match any characters between a period and a semi-colon in Regex? -
how can match characters between period , semi-colon in regex, including whitespace, carriage returns, , other periods , special characters including brackets?
for example, given:
somemethod().anothermethod("argument") .anothermethod(1, "arg");
i want able match:
.anothermethod("argument") .anothermethod(1, "arg");
\.([^;]*);
seems fit bill.
note question asked simpler need: presumably want similar result somemethod().anothermethod("foo; bar; , baz").anothermethod(1);
, regex you've asked stop @ first ;
.
Comments
Post a Comment