Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(\d{1,2}\.)+\d{1,2}
"
gm

Description

Tte pattern to grep the multilayer numbered list bullets:

  1. level 1 1.2. level 1.2 1.2.1. level 2.1 1.3. level 1.3 1.4. level xxx

from the beginning of the string

Submitted by anonymous - 4 years ago