Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
7Networks_([LR]H{1})_(.*)
/
gm

Description

Extract information about hemisphere and region name from Schaefer atlas labels.

Personally I use this for nilearn.datasets.fetch_atlas_schaefer_2018 function where I access the labels property of the resulting variable, but you do you.

Submitted by Julia Marcinkowska - 8 months ago