I have string as abvd.qweqw.sdfs.a=aqwrwewrwerrew. I need to parse this string and get piece before = and after =. Symbol . can occur many times. So, please, tell me, which regular expression can I use for parsing? Thank you.
I have string as abvd.qweqw.sdfs.a=aqwrwewrwerrew . I need to parse this string and get
Share
Purely based on your example:
Edit
But actually:
The results are in memory groups 1 and 2. In code:
Btw, I’ve tweaked the expression by anchoring it (using
^). If that doesn’t work, just remove it from the expression.