I want this a regex to be format over several lines for clarity. Like this (the forum format strips all of the assignment tags or marks the whole post as spam?):
$regexDatum = [regex] @" ^\<(?[0-9A-Fa-f][0-9A-Fa-f]), (?\w\w), (?\d+), (?\d+), (?\d+), (?-{0,1}\d+), (?\d+), (?\d+), (?-{0,1}\d+), (?\d+), (?\d+), (?\d+),
But I find that the whitespace at the end of the line cause problems and the backtick seems to compound the problem. Hence I’m forced to put in all on one line - hello column 240 …
Most c-compilers would allow me to something like this (slashes not corrected for c-compiler)
char[] regexDatum = "^\<(?[0-9A-Fa-f][0-9A-Fa-f])," "(?\w\w)," "(?\d+)," "(?\d+)," "(?\d+)," "(?\d+)," "(?-{0,1}\d+)," "(?\d+)," "(?\d+)," "(?-{0,1}\d+)," "(?\d+)," "(?\d+)," "(?\d+),"
Is there a way to terminate/continue the line within a text block?
Bonus question:
Are comments allowed within the regex pattern string?
(e.g. Perl allows (?# my comments) or the /x modifier)