pf » Tag: rereplace on Pete Freitag's Blog
September 05, 2006
Widon't and Widows
Shaun Innman posted about a technique he call's Widon't, for dealing with the widow problem on the web.The widow problem is when you have a single word on a line by itself, at the end of a headline or paragraph. In typesetting this word is called a widow.
June 24, 2005
Auto-Linking Comments
To avoid comment spam, my blog comments are displayed as plain text. However urls to other entries on my blog are often posted to in the comments. So I wrote a simple regular expression to create hyperlinks out of them:REReplaceNoCase(comments.comment,
"(http://www\.
May 19, 2005
Regex to Replace Multiple Blank Lines with One
I'm working on a function to strip HTML, but preserve things like paragraph spacing. In removing HTML tags, sometimes you end up with lots of blank lines...
Subscribe to my RSS Feed:
RSS
RSS
Pete Freitag is a software engineer, and web developer located in









