Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-10-03 21:48
Flavor·PCRE2 (PHP)

/
((?<=\/|=)wall|photo|video)(-?[0-9]*)_([0-9]*)(\?reply=)?((?<=reply=)[0-9]*)?
/
g
Open regex in editor

Description

This regex allows access to owner id and item id of VK url.

Submitted by MagicWinnie