Regex for Replace everything after second occurrence of character
If you want to get everything after second occurrence of a set character, in this example, we’ll use a dash, use this code. Replace everything – after this – character
1 |
(([^-]*-){2}) |
1 |
((.*?-){2}) |
((.*?-){2}): matches and groups any number … Continued