-
Recent Posts
Twitter
- Dear Plasmarl, why is there a helicopter outside my bedroom window? 4 days ago
- Happy Star Wars day everyone! May the 4th be with you all! :o) 2 weeks ago
- Just got in from work and deliberately didn't bring laptop home. Now I'm here with no work and don't know what to do with myself! 1 month ago
Archives
Meta
Tag Archives: regular expressions
Regular Expression for A Number
I’ve recently had to delete pages numbers out of some of the novels I’ve saved on this site. A handy way of stripping out these numbers quickly is by using Dreamweaver’s search function, which can take a regular expression as a search term.
To get rid of numbers in the format [1]… [10]… [100] I just searched for;
[[0-9]+]
When I needed to get rid of the page line links (<a name=”Page_12″ id=”Page_12″></a>) I searched for;
<a name=”Page_[0-9]+” id=”Page_[0-9]+”></a>