Regex for Umlaut

前端 未结 5 1762
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 05:56

I am using JS Animated Contact Form with this line of validation regex:

rx:{\".name\":{rx:/^[a-zA-Z\'][a-zA-Z-\' ]+[a-zA-Z\']?$/,target:\'input\'}, other fie         


        
5条回答
  •  旧时难觅i
    2020-11-30 06:24

    The problem with the \uXXXX approach is, that it is not supported by all Regex flavours. For example Visual C++ does not support it. There, you would need to enumerate the actual letters.

    I recommend to use a tool like https://www.regexbuddy.com/ that knows as many flavors as possible.

提交回复
热议问题