I have been looking for how to set together words that include either slash or hyphen. For instance, the following words:
re/max accessory source
re-max accessory
tri/max delivery
tri-max food
I am looking for setting together the words as long as they are in length max 3 in each side of hyphen or slash.
The output should be:
remax accessory source
remax accessory
trimax delivery
trimax food
I was expecting to apply look behind before the slash or hypen then, look ahead for the second part after slash. Something like the following:
(?<=[a-zA-Z]{1-3})\/(?=[a-zA-Z]{1-3})
Any help on this is highly appreciated.