1 | An integer with optional plus or minus sign |
2 | ^(\+|-)?[0-9]+$ (may use [-+]? as well) |
3 | Double-quoted strings, with no nested double quotes |
4 | "[^"]*" (matches the empty string "") |
5 | Double-quoted strings, with Fortran-like nested quotes |
6 | "([^"]|"")*" |
7 | Double-quoted strings, with C-like nested quotes |
8 | "([^"]|\\")*" (bugged! Why?) |
9 | "(\\"|[^"])*" (better, but still flawed) |
10 | "(\\"|[^"\\])*" (works, but inefficient) |
11 | "([^"\\]|\\")*" (works efficiently!) |
12 | Double-quoted strings, with other escaped characters |
13 | "([^"\\]|\\.)*" (but not escaped newlines) |
14 | "([^"\\]|\\(.|\n))*" |