Topic: 正则表达式

  Print this page

1.正则表达式 Copy to clipboard
Posted by: rfuture
Posted on: 2005-05-30 14:50

“/\*[\d\D]*?\*/”
我想注释掉/* */中的内容,上面的正则表达式为什么不能通过。

好像是/\*有问题,在*之前应该有转义字符\,可是加上这个转义字符就有问题。
在Eclipse中编译的,是不是还要除了import java.util.regex.*;外的其它包?

2.Re:正则表达式 [Re: rfuture] Copy to clipboard
Posted by: rfuture
Posted on: 2005-05-30 14:54

/\*.{0,}\*/

这样也不行,也就是处理符号*应该怎么办啊?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923