| Lucas_Werkmeister_WMDE updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
...
However, the majority of user-provided regexes we’re interested in ([76%](https://query.wikidata.org/#SELECT%20%28COUNT%28%3Fregex%29%20AS%20%3Fcount%29%20%28SUM%28%3Fsimple%29%20AS%20%3Fsimples%29%20%28CONCAT%28SUBSTR%28STR%28100%2a%3Fsimples%2F%3Fcount%29%2C%201%2C%205%29%2C%20%22%25%22%29%20AS%20%3Fpercent%29%20WHERE%20%7B%0A%20%20%3Fproperty%20a%20wikibase%3AProperty%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20p%3AP2302%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20ps%3AP2302%20wd%3AQ21502404%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20pq%3AP1793%20%3Fregex%0A%20%20%20%20%20%20%20%20%20%20%20%20%5D.%0A%20%20BIND%28IF%28%21REGEX%28%3Fregex%2C%20%22%5B%28%29%5D%22%29%2C%201%2C%200%29%20AS%20%3Fsimple%29%0A%7D)) do not contain any parentheses, which means they cannot contain any groups and their star height must be 0 or 1. Unless I’m mistaken, this should mean we can safely evaluate them via `preg_match`, and the evaluation time should not explode....
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: Ladsgroup, Aklapper, Lucas_Werkmeister_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, Agabi10, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
Cc: Ladsgroup, Aklapper, Lucas_Werkmeister_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, Agabi10, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
