Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[acgtnACGTN]+$|^\*?$|^<(INS|DEL|DUP|INV|CNV|DUP:TANDEM|INS:NOVEL|INS:ME(:ALU)?|DEL:ME(:ALU)?)>$
/
gm

Description

Parse ALT field (alternative allele) in VCF 4.2 format

Submitted by panagiotis moulos - 6 years ago