Dear all,
I have some redundant information in my Wiki which I would like to clean up and remove.
I'm talking about an SMW attribute named "Titel". Each page in my wiki has this attribute.
So my task is to remove a line as follows on each page:
|Titel=Some individual text...
So the search string should be something like: |Titel.*
which I would then replace with an empty string.
Unfortunately this search gives me a database error:
____________
[X@287-FSfWJq11TyEbd5ZgAADQA] /index.php?title=Spezial:Text_ersetzen Wikimedia\Rdbms\DBQueryError from line 1603 of /www/htdocs/w00997ce/hvg-wiki-2020-03/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT page_id,page_namespace,page_title,old_text FROM `page`,`revision`,`text`,`slots`,`content` WHERE (old_text REGEXP '|Titel=.*') AND page_namespace = '0' AND (rev_id = page_latest) AND (rev_id = slot_revision_id) AND (slot_content_id = content_id) AND (SUBSTRING(content_address, 4) = old_id) ORDER BY page_namespace, page_title LIMIT 250
Function: ReplaceTextSearch::doSearchQuery
Error: 1139 Got error 'empty (sub)expression' from regexp (localhost)
...
____________
Root cause of this issue seems to be the pipe symbol, if I leave this out it seems to work.
However, I need to remove the entire line incl. the pipe symbol on each page.
Does anybody have a hint how to overcome this problem?
Many thanks!