How to extract positive lookbehind of the last occurence of the character in Regex

176 Views Asked by At

If I have text like below:

Wow [Game Ad] - CHECK - Arabic

I trying to extract only Arabic from the above text.

I tried (?<=\-\s)(.*)$ and it returns CHECK - Arabic by detecting the first - instead of the last occurence of -.

Is there a way for extracting the string after the last occurrence of the character for lookbehind?

0

There are 0 best solutions below