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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -