Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-02-11 04:28
Flavor·Golang

`
^(\[\w+\]){1,2}\s(.*?)\s-\s(\d+)?(v\d+)?(\s(\(\w+p\)|(\[\w+p\]))?){1,2}.*$
`
gm
Open regex in editor

Description

Parse XDCC filename strings for a name and episode. Appears to work for most major bots but unreliable for any data other than name and episode number/version

Submitted by anonymous