zarunbal / LogExpert

Windows tail program and log file analyzer.
Other
950 stars 163 forks source link

How to apply a tab-delimiter to columnizer #271

Open kkwaiser opened 2 years ago

kkwaiser commented 2 years ago

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?

Hirogen commented 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

maddin30 commented 1 year ago

Hello.

Would a Regex Columnizer be an option?

grafik

Maybe this could meet your expectations.

Northman-de commented 4 months ago

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 :-)