tur*_*rnt 3 javascript regex
这是正则表达式: /<\?nib.+\?>/im
/<\?nib.+\?>/im
我在这样的文件上测试它:
<html> <head> <title>OPEN LARK</title> </head> <body> <h1>THIS IS A HEADER <?nib asdf ?> </h1> </body> </html>
我没有比赛.我怎样才能解决这个问题?
Rac*_*cso 8
您正在使用.匹配多行.这不是在Javascript中实现的.检查此答案以获得解决方法.
.
关于变通方法:
而不是点,使用一个类及其否定来匹配所有内容.例如,替换.用[\s\S].
[\s\S]
归档时间:
12 年,3 月 前
查看次数:
96 次
最近记录: