The following should be matched:
AAA123 ABCDEFGH123 XXXX123
can I do: \".*123\" ?
\".*123\"
[^] should match any character, including newline. [^CHARS] matches all characters except for those in CHARS. If CHARS is empty, it matches all characters.
[^]
[^
]
JavaScript example:
/a[^]*Z/.test("abcxyz \0\r\n\t012789ABCXYZ") // Returns ‘true’.