Test, validate and match regular expressions
This regex matches DNA sequences that represent open reading frames (ORFs): it starts with the start codon ATG, followed by one or more complete codons (triplets of the bases A, C, G, or T), and ends with a stop codon (TAA, TAG, or TGA). It is commonly used in bioinformatics to identify potential protein-coding regions in nucleotide sequences, especially when scanning both strands or multiple frames. The 'gm' flags allow matching across multiple lines and treating the entire input as a single string. This pattern is useful for validating or extracting ORFs from genomic or transcriptomic data.