Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-06-01 13:34
Flavor·PCRE2 (PHP)

/
^(?!(-|_))(?!.*(--|__))[A-Za-z0-9-_]+(?<!(-|_))$
/
gm
Open regex in editor

Description

regular expression for illumina sequencer sample ids. sample Ids are alpha numeric with no more than two dashes or underscores and no underscores or dashes in the beginning or end of the sample id.

Submitted by anonymous