Let’s say I have the string:
"Hello world; some random text; foo; bla bla; "
what regular expresion could I use in order to get a substring until the second ; .
In other words I will like to end up with the substring "Hello world; some random text;"
or maybe I want to get the substring until the 3th ; thus ending up with:
"Hello world; some random text; foo;"
Try this one. Should work just fine.
Used as follows: