#DPL: Filtering pages using titleregexp?

3 messages · Page 1 of 1 (latest)

acoustic pasture
#

Hello, I have about 700~ pages that follow this format:

Quest 1
Quest 2
Quest 3
...
Quest 10
Quest 11
Quest 12
...
Quest 100
Quest 101
Quest 102
...
Quest 698
Quest 699
Quest 700

I am aiming to create several pages that only return 50 pages at a time, but I want to filter by 1-50, 51-100, 101-150, etc. I don't want to return just 50 results at a time as there may be a few pages missing in between these 700, which would throw it off.

I don't think this extension can filter by a range like 1-50, so I'm trying to get this working through regex instead. Here's my current DPL query:

{{#dpl:
| category       = Quests
| titleregexp    = ^Quest ([0-9]$|[1-4][0-9]$|50)$
| count          = 15
| include        = {Quests}:en_name
| table          = ,Quest,Name
| tablesortcol   = Quest
| replaceintitle = /Quest /,
| rowcolformat     = width=100%
| tablesortcol   = 1
| order          = ascending
}}

This generates my table, but isn't returning the right pages. This regex expression should be? valid (confirmed it through regex101: https://regex101.com/r/Fvj739/1), but it's still returning the wrong pages. Any idea what I'm doing wrong? Thanks for the help.

#

Extra bit of information, but this appears to match against all pages, instead of just 1-50 if I remove the count. I am not expecting to see all 1-50 pages because some are missing, but I shouldn't see anything outside of this range.

#

Okay.. well part of my issue could have been due to escaping the pipe, but it didn't solve the problem. Writing out the full title in the expression each time looks to have done it, although this is kind of messy imo.

^Quest [0-9]$¦^Quest 1[0-9]$¦^Quest 2[0-9]$¦^Quest 3[0-9]$¦^Quest 4[0-9]$¦^Quest 50$