Lucas_Werkmeister_WMDE added a comment. |
RE2 sounds nice… we could probably live without backreferences. But we’d need some way to use RE2 in PHP.
I don’t think Lua patterns are powerful enough to check format constraints. There are a lot of format constraints on Wikidata already, many of them fairly complicated to match weird identifier formats from all kinds of organizations, and at least general alternation is used by a lot of them.
For best compatibility with KrBot (a community-run bot that also checks constraints on Wikidata, and uses PCRE for regexes), I would strongly prefer using PCRE, in a very restricted environment of course.
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: Anomie, Smalyshev, tstarling, daniel, GWicke, Joe, Lucas_Werkmeister_WMDE, Krinkle, Aklapper, GoranSMilovanovic, QZanden, Agabi10, Izno, SBisson, Wikidata-bugs, aude, jayvdb, fbstj, RobLa-WMF, santhosh, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Ltrlg, bd808, Legoktm
Cc: Anomie, Smalyshev, tstarling, daniel, GWicke, Joe, Lucas_Werkmeister_WMDE, Krinkle, Aklapper, GoranSMilovanovic, QZanden, Agabi10, Izno, SBisson, Wikidata-bugs, aude, jayvdb, fbstj, RobLa-WMF, santhosh, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Ltrlg, bd808, Legoktm
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs