Page MenuHomePhabricator

Using regex tester the end of result isn't same as Type fix
Closed, InvalidPublic

Description

when I used regex tester the end of result isn't same as Type fix.

未命名.png (900×1 px, 215 KB)

Event Timeline

Are you sure that's the regex responsible for the replacement?

Dinoguy1000 changed the task status from Open to Stalled.Feb 5 2020, 5:57 AM

It is incorrect . The correct one is under below.

((?:(?:美|英|法|德)國?)|(?:(?:台|臺)灣?)|印|台|古|書|荷蘭|華|歐|外|原|西班牙|瑞(?:士|典)|黨|祖|古|書|學)藉([^水滑其])
Bugreporter subscribed.

The regex does not match the text described. This will work:

((?:(?:美|英|法|德|中)國?)|(?:(?:台|臺)灣?)|印|台|古|書|荷蘭|華|歐|外|原|西班牙|瑞(?:士|典)|黨|祖|古|書|學)藉([^水滑其])

You may test it at https://regex101.com/