gordonjb / graplist.fm

Stats for wrestling shows you've attended, sourced from Cagematch.net. setlist.fm, for wrestling. Taking suggestions for better names
2 stars 0 forks source link

Translate "Tag {x}" to "Day {x}" in show names #10

Closed gordonjb closed 5 years ago

gordonjb commented 5 years ago
gordonjb commented 5 years ago

Should probably put a flag in for this at some point, not everyone is english ofc

gordonjb commented 5 years ago

Some test strings:

# Tag should be found
NJPW G1 Climax 2019 - Tag 12
ZERO1 Genki Soul Niigata Cheerful & Bullying Eradication Movement ZERO1 x Panchinko Tamasaburo Charity Pro-Wrestling 2017 Spring Camp - Tag 1
RCW @ Japan Weekend Madrid 2019 - Tag 2 - Morning Show
BJW Ueno Wrestling Festival 2017 - Tag 4 Teil 2
BJW Ueno Wrestling Festival 2017 - Tag 4: Show #3
# Only the second tag should be found!
FCP Dream Tag Team Invitational 2019 - Tag 1
# None of this should match
BJW Dai Nippon Pro-Wrestling Ueno Convention - Day 3 Part 1 BJW Shuffle Tag Tournament

Regex (Tag) [0-9]+ should fulfil these requirements, with "Tag" in capture group 1.

(Should we also translate "Teil"? I've seen this a few times, the same regex should suffice.)

https://regex101.com/r/IRwsem/1