This is probably dead easy, but nothing I'm trying is working. It might not even be necessary to use regexps.
Basically, I've got strings of data that are separated by a potentially unlimited number of tabs. For example (pretend that hyphens are tabs):
ID-DATA----FLAGS
1---5---2
2---5---1
3---124------4
What I want to do is to replace each separator with a single tab, thus rendering this:
ID-DATA-FLAGS
1-5-2
2-5-1
3-124-4
Is this possible?
//edit: Never mind, just tried this regexp: /-*-/ and all works fine. Can't explain why though 😉