View Single Post
Old 03-19-2014, 09:43 AM   #3
montalex
Fanatic
montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.
 
Posts: 556
Karma: 1283268
Join Date: Mar 2010
Device: KindleDX,Kindle 4, Kindle Keyboard 3G
Quote:
Originally Posted by mrmikel View Post
The brackets are part of regex. To make them a literal character use \ in front of them.
<p>\[\d+\]</p>

Or <p>\[(.+?)\]</p> to remove any thing with brackets around it.

That is my guess. I am not a regex guru.
To me, you are a regex guru! <p>\[(.+?)\]</p> worked. Phew! That felt good, like trimming a hedge...

Thanks!
montalex is offline   Reply With Quote