Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-07-12 13:44
Flavor·Python

r"
(?:^|_|[^\w&/]+)(?:#|)([\wÀ-ÖØ-öø-ÿ]+)
"
gui
Open regex in editor

Description

Because 're' module in python do not support \p{L} unicode class need to use simplistic regex with \w instead \p{L}. But such regexp also match digits like #123, #003 and so on. So it need to further filter out digit-only tags.

Submitted by Stanislav Otovchits