I have the following input:
aaa/bbb
ccc/ ddd
eee /fff
ggg / hhh
/iii/jjj/
I would like to make sure all forward slashes (Except for the ones in the end of a string) have a space before and after. The result would be:
aaa / bbb
ccc / ddd
eee / fff
ggg / hhh
/iii / jjj/
So far I have the following regex:
(?<=\/)(?!$)
But this is still far from working. Any help would be appreciated figuring out the correct regex for this. The language is C#.