Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
[a-zA-Z]+://[a-zA-Z]+\.[a-zA-Z]+/[a-zA-Z]+([+-]?(?=\.\d|\d)(?:\d+)?(?:\.?\d*))(?:[eE]([+-]?\d+))?_[0-9]+
"
gm

Description

Extract the numerical ID of a VK Commmunity fromit's wall url.

Submitted by anonymous - 2 years ago