Description |
Intended for single line. JavaScript match() method (or equivalent) creates an array of values each of which is either an unquoted string of non-whitespace chars, or a quoted string which can contain whitespace, escaped quotes (""), escaped escaped chars ("""), or be empty (""). Splits on whitespace AND splits on opening and closing quotes. An unclosed quote matches all until end of input. The Matching Examples are ready for enclosure in single quotes. Output of Matching Example 1:
[0]=a
[1]=" b b "
[2]=c""c
[3]=""
[4]="""d"""
Output of Matching Example 2:
[0]=a
[1]=" b"""
[2]=c
[3]="d"
[4]=" e "" e |