Regular Expressions 101

Community Patterns

Extract VK.com community ID

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