RegEx to select everything between two characters? -


i trying write regex selects between 2 characters.

for example, when regex encounters '§' want select after '§' sign, until point regex encounters ';'. tried lookbehind , lookahead, don't trick.

so example " § 1-2 bla; " should return " 1-2 bla".

any appreciated!

how about

"§([^;]*);" 

the selected characters between § , ; available match group 1.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -