Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(profiles|id)\/([\w-]*)
/
gm

Description

Extracts the <profiles/id>/<username/id> from links like https://steamcommunity.com/id/rafa_br34/ or https://steamcommunity.com/profiles/76561198449824687/

Submitted by rafa_br34 - 19 days ago