thankyou歌词本文由我司收集整编,推荐下载,如有疑问,请与我司联系Regex为1或2位数字,可选非字母数字,2个已知字母Regex为1或2位数字,可选非字母数字,2个已知字母[英]Regex for 1 or 2 digits, optional non-alphanumeric, 2 known alphas I’ve been bashing my head against the wall trying to do what should be a simple regex - I need to match, eg 12po where the 12 part could be one or two digits, then an optional non-alphanumeric like a :.-,_ etc, then the string po.2013上海高考英语
我一直在试图做一个简单的regex——我需要匹配,比如12po, 12个部分可以是1或2位数字,然后是一个可选的非字母数字,比如a:。-,_等,然后是字符串po。 The eventual u is going to be in C# but I’d like it to work in regular grep on the command line as well. I haven’t got access to C#, which doesn’t help.
properly 最终的用途将是在c#中,但是我希望它在命令行中也使用常规的grep。我没有c#的权限,这没有帮助。
Add any other allowable non-alphanumeric characters to the middle brackets to allow them to be pard as well.enhanced是什么意思
将任何其他允许的非字母数字字符添加到中括号中,以允许对它们进行解析。committing
胖人穿衣搭配
\d defines a number and {1,2} means 1 or two of the expression before, \W defines a non word character.
moderate是什么意思 \d定义一个数字和{1,2}表示之前的1或2个表达式,\W定义一个非字字符。
You can test it here: regextester/
场景英文
您可以在这里测试:regextesterite \\ for one backslash)教程英文
记住,@是一个有用的符号,意味着解析器从字面上获取字符串(例如,您不需要为一个反斜杠编写\)
tips:感谢大家的阅读,本文由我司收集整编。仅供参阅!
>英语六级估分器