Test, validate and match regular expressions
This regular expression is designed to match human genomic coordinates, optionally starting with a 'chr' prefix followed by a chromosome number (1-22, X, or Y). It also robustly captures optional start and end positions separated by colons, spaces, or dashes. Furthermore, it can identify reference and alternate alleles consisting of A, C, G, and T nucleotides, making it ideal for parsing bioinformatics data formats like VCF or mutation datasets.