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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -