我有一个表达:需要用正则表达式帮助解析表达式
((((the&if)|sky)|where)&(end|finish))
我需要的是把符号和文字之间的空间,使得其结束了,如:
((((the & if) | sky) | where) & (end | finish))
正则表达式我想出了是(\w)*[(\&*)(\|*)]
只得到我:
((((the& if) | sky) | where) & (end| finish))
我可以从居民的正则表达式大师那里得到一些帮助吗?我将在C#中使用它。
我发现这个网站在开发和测试正则表达式模式有所帮助:HTTP://www.myregextester .com/index.php – ShaneBlake 2011-05-06 21:15:37
这将导致类似'hello world'的信息被转换为'hello world'(3个空格)。不过,我不确定这是否是个问题。 – 2011-05-06 21:17:27