ShakespeareFan00 created this task.
ShakespeareFan00 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Feature summary** (what you would like to be able to do and where):
  
  -grepnot:regexpr  filter to exclude pages containing the regular expression 
provided when specifying filters for the listpage script in pywikibot
  
  **Use case(s)** (list the steps that you performed to discover that problem, 
and describe the actual underlying problem which you want to solve. Do not 
describe only a solution):
  
  Recently i was wanting to do a query to find Pages on Wikisource, that do not 
contain a specific string, namely '\<pages'
  
  I can use a command like:-
  
    pwb.py listpages -ns:0 -usercontribs:"ShakespeareFan00"  -intersect 
-titleregexnot:"1911" -grep:"\<pages"  -lang:en -family:wikisource  
-format:"{page.loc_title}" | sort > checkpages_IP
  
  What I cannot currently do is :-
  
    pwb.py listpages -ns:0 -usercontribs:"ShakespeareFan00"  -intersect 
-titleregexnot:"1911" -grepnot:"\<pages"  -lang:en -family:wikisource  
-format:"{page.loc_title}" | sort > checkpages_IP
  
  To generate a list of pages not containing the regular expression concerned.  
In this instance I was attempting to find a list of my edits to Main namespace 
that did not contain a pages tag, so I could match them up with Index: and 
convert them to be scan-backed using page transclusion.
  
  **Benefits** (why should this be implemented?):
  
  Whilst manually writing regular expressions to exclude certain phrases ( with 
negative lookahead?) is feasible, it's far harder than writing expressions to 
include them, thusly it's faster to write for positive regexps, and have the 
exclusion implemented in the filter rather than having to write complicated 
expressions manually.

TASK DETAIL
  https://phabricator.wikimedia.org/T309270

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: ShakespeareFan00
Cc: Aklapper, ShakespeareFan00, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to