Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
http(?:s)?\://boards\.4chan\.org/([a-z]*)/thread/([0-9]*)(?:\#[0-9a-z]*)?
/
g

Description

Matches a 4chan thread URL, see the examples

Submitted by Zeke Sonxx <github.com/zekesonxx> - 10 years ago