Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple comment prefixes (setting: rainbow_csv.comment_prefix) #169

Open
masebu opened this issue Apr 2, 2024 · 1 comment
Open

Comments

@masebu
Copy link

masebu commented Apr 2, 2024

Hi,

thanks for this extension which facilitates my everyday work. I love it and promote it to my colleagues.

I often use it with HDL files; that's a specialized pipe-separated format for importing data in Oracle HCM Cloud.
There are two types of lines I would like ignored:

  • those that begin with COMMENT
  • those than begin with SET

At the moment, apparently only one pattern is considered.
Would it be possible to specify multiple prefixes ?
I know it's not very "classic CSV".

Thanks for reading

@mechatroner
Copy link
Owner

Thank you! I am happy to know that Rainbow CSV is useful!
Regarding multiple comments - IMO the next level of generalization should be a comment regexp setting e.g. ^(COMMENT|SET) this would allow it to match even in the middle of the string. l am planning to implement this and also extend possible options for available parsing rules - this is high on my priority list, but I am not sure when I would be able to do this, hopefully within a few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants