Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?P<id>\d{4,6})_1_(?P<amplicon>A16S|ITS|16S|18S)_(?P<vendor>AGRF|UNSW)_(?P<index>[G|A|T|C|_]*)_(?P<plate>\w{5})_(?P<section>S\d{1,3})_(?P<lane>L\d{3})_(?P<read>R[1|2])\.fastq\.gz
"
g

Description

BASE Amplicon parsing

Submitted by sthysel - 9 years ago