Your problem lies in your [A-Z]*. This doesn't account for any spaces,
numbers, or special characters. Try something more like this:
ReReplaceNoCase(templatefile,
"<title>[^<]*</title>","<title>#PageTitle#</title>", "ALL")
This will search for anything that's not a "<" character.
Hope that helps
Jason Powers
Fig Leaf Software
202-797-5440
-----Original Message-----
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 9:34 AM
To: CF-Talk
Subject: Reg Expression
I'm trying to replace the text between the <title></title> tags with a new
string
ReReplaceNoCase(templatefile,
"<title>[A-Z]*</title>","<title>#PageTitle#</title>", "ALL")
What am I doing wrong? (I really am bad with reg expressions)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists