uniVocity / univocity-parsers

uniVocity-parsers is a suite of extremely fast and reliable parsers for Java. It provides a consistent interface for handling different file formats, and a solid framework for the development of new parsers.
917 stars 252 forks source link

Parsing multicharacter delimiter column values from .txt file #443

Closed akssagar07 closed 3 years ago

akssagar07 commented 3 years ago

Hi, I have a text file with multicharacter delimiter like '#@#@'. I want to parse such file using this library and i have below questions: Content example:

col1#@#@col2#@#@col3 col1value1#@#@col2value2#@#@col3value3 col1value1#@#@col2value2#@#@col3value3 col1value1#@#@col2value2#@#@col3value3

  1. Is is possible parse a file with multicharacter delimiter like '#@#@'. I saw that this library accepts single character delimiter. though we set multiple delimiter characters but it tries to look for one by one character from set of characters not multiple characters at once.
  2. can I use CsvParserSettings api to to parse text file which has some delimiter separated values as in above example content.
jbax commented 3 years ago

It's supported, try it out

On Thu, Jan 21, 2021, 12:30 AM akssagar07 notifications@github.com wrote:

Hi, I have a text file with multicharacter delimiter like '#@#@'. I want to parse such file using this library and i have below questions: Content example:

col1#@#@Col2 https://github.com/Col2#@#@col3 https://github.com/col3 col1value1#@#@col2value2#@#@col3value3 col1value1#@#@col2value2#@#@col3value3 col1value1#@#@col2value2#@#@col3value3

  1. Is is possible parse a file with multicharacter delimiter like '#@#@'. I saw that this library accepts single character delimiter. though we set multiple delimiter characters but it tries to look for one by one character from set of characters not multiple characters at once.
  2. can I use CsvParserSettings api to to parse text file which has some delimiter separated values as in above example content.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uniVocity/univocity-parsers/issues/443, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWFQPV2CCH3P4VMAMOXR2LS23OZBANCNFSM4WKXAW7A .