Open kkwaiser opened 2 years ago
I think regex is the wrong tool for the job, it's rather complicated to fetch multiple tab-delimited capturing groups if you don't know how many "columns" there are!
https://stackoverflow.com/questions/37003623/how-to-capture-multiple-repeated-groups
Hello.
Would a Regex Columnizer be an option?
Maybe this could meet your expectations.
It's much easier: use the csv columnizer and copy&paste a single TAB-character from Notepad to the "delimiter char" field. Works for me since a decade :-)
Is there a simple way to columnize tab-delimited file? I'm aware I can use a Regex columnizer that repeats the following sequence
(.*\t)+(.*\t)+(.*\t)+(.*)
However, this approach requires hard-coding the number of columns by repeating the tab (\t) checks. The CSV Columnizer could work for this except the Delimiter char field only accepts a single character. In other words "\t" is too long to insert. I feel like tab-delimited files are common enough that there should be a straightforward approach to columnizing them. Am I missing something?