Description |
JavaScript match() method (or equivalent) creates an array of lines from a text file. This pattern only handles lines ending with \n, not \r\n. The Matching Examples are ready for enclosure in single quotes. Output from Matching Example 1:
[0]=a " b [\n] " c
[1]= Line2...
[2]= Line3...
Output from Matching Example 2:
[0]=a " b [\r][\n]" c [\r]
[1]=
[2]= Line2... [\r]
[3]=
[4]= Line3... |