开发者

Emacs regexp-replace seems to work unexpectedly

I am trying to remove some <span style="something not constant"&开发者_JAVA百科gt; from a text and I tried M-x replace-regexp> "<span*>" -> ""

but it does nothing. I made sure the cursor is at the beginning of the file.


You must probably know that * in a regex means 'repetition', and i'm not sure you want to remove something like <spannnnn>, do you ?

What you mean is probably: <span.*>

PS: Made the same mistake as you ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜