Hi,

I'm trying to make a regexp to match the last appearance of a word (lets say
'abc') until the first appearance of another word (for ex: 'xyz'), and I
still cannot do it.

For example: with a string like this "abc abc abc toto toto xyz xyz xyz" ,
which regexp I have to use to get "abc toto toto xyz".
I can extract this "abc abc abc toto toto xyz" with   m/abc(.*?)xyz/
but still got a problem to have exactly what I need.

Would you guys please help me?

Thank you very much

Reply via email to