阅读背景:

是否可以编写一个regex来验证简单的数学?

来源:互联网 

I’m using a commercial application that has an option to use RegEx to validate field formatting. Normally this works quite well. However, today I’m faced with validating the following strings: quoted alphanumeric codes with simple arithmetic operators (+-/*). Apparently the issue is sometimes users add additional spaces (e.g. “ FLR01” instead of “FLR01”) or have other typos such as mismatched parenthesis that cause issues with downstream processing.I’m using a commercial application that has an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: