Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([a-z0-9]+\.)*(finalfantasyxiv\.com)*(\/)*(lodestone)*(\/)*(character)*(\/)*([0-9]+)
/
gmi

Description

Parses full url up to character page. Ignores http:// and anything after character ID

Submitted by JaveLiner - 9 years ago