Got some problems with the damn regexp being a pain in the ass
Well hope someone can figure it out,
lets say we have a string:
"one two three four five six"
and i would like to have the word before "four" in var using regexp.
So that the new string will be "three",
the best i got was:
regexp {( ).*( four )} $string string
but this will return "two three"
Anyawy im clueless tried several combinations, but no luck. Hope anyone can help me out.