Regular Expressions 101

Community Patterns

Validate steam profile id perma-link

1

Regular Expression
PCRE (PHP <7.3)

/
^(http(s)?:\/\/)((www\.)?[steamcommunity]+\.)+[\w-]+(\/profiles\/7656[0-9]{13}\/?)$
/
gim

Description

Validates the full url is a steamID64 profile perma-link

Submitted by DrWhat - 8 years ago