Hi guys, I am trying to use the Java useDelimiter method for this Scanner class to do a simple parsing. Basically, each line represents an entry limited by the symbol "|", for example, for example:
2 | John Doe 3 | Jane Doe 4 | Jackie Chan
The method takes as a parameter the regular expression for which to match. Can someone please provide me a regex that matches | (vertical strip divided by one space on both sides).
Thank you, I would really appreciate it!
java java.util.scanner regex parsing delimiter
Jorge israel peña
source share