English 中文(简体)
jsfiddle 未能做到这一点?
原标题:jsfiddle fails on this regex?

I m protyping some text processes to prep research data for coding, and I ve got a javascript取而代之的是jsFiddle的炸弹。

   mE[1] = mE[1].replace(/<p.*>/ig,   );­ // <<< this line

I m trying to remove any opening paragraph tag.

If you look at http://jsfiddle.net/jotarkon/2e5gq/, uncomment that line and see that it the script fails.

- 点击火

这对我来说是一种nut子。 有什么想法是错误的?

最佳回答

这个问题似乎实际上属于非法性质,我并不认为与reg有任何关系。 逐条打字,删除。 当我这样做时,假肢会打上罚款(至少是这样错误)。

<>edit——非法性质在这条线上的半殖民地之后正确。 从对你的“这条线”评论的“/”开始,几度打回空间,以抹去大象和半殖民地,然后重新定性为半殖民地。

edit some more - 特性为C2 AD(hex)序列。

问题回答

首先,不使用静默。 现有图书馆。 你们可以用超文本。 第二,需要更加具体。 说“替换炸弹的声明”就没有告诉我们错误的性质。 最后,如果你真心 cur,则该reg鱼是贪.的,那么,它就将永远取代从第一道字母起的首批超标,直到最后的<代码>和>;在你的投入中不加区别地取而代之。 如果你真的想要使用,那就使它失去效力,并确保它与从那封信开始的其他标签相匹配。 我不想具体,因为这样做是错失的答复。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签