FYI I figure it out
was simple once you looked at the content. since it is all in commented tags
ReReplaceNoCase(str,!--(.*?)--, , ALL);
Just incase anyone else has this issue.
I am having an issue creating a regex to strip out the XML content
that Word 2007 is adding our HTML editor.
You could just do something a bit more simple:
strTarget = SatSun;
strResult = (Left(strTarget, 3) , Right(strTarget, 3));
...
Ben Nadel
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com
Vote for
@houseoffusion.com
Sent: Wednesday, December 07, 2005 11:56 AM
Subject: RE: Regex Help Needed
You could just do something a bit more simple:
strTarget = SatSun;
strResult = (Left(strTarget, 3) , Right(strTarget, 3));
...
Ben Nadel
Web Developer
Nylon Technology
6 West 14th
result = REreplace(string,
$.*(%---.*---%).*^,
\1);
That should do it, although it'll cause problems if there is more than one
%--- ---% block in thr string. If the string you're looking for never
contains a greater than sign, then you can use this RE instead, which will
then work
Thanks!
I wasn't even close. :-)
You saved me a great deal of time, much appreciated.
Mike
- Original Message -
From: Barney Boisvert [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 2:29 PM
Subject: RE: regex help needed
result = REreplace(string
Untested code but something like this should work:
cfset str = dllCall1%---session|errorTrap|DetailNumeric---%EndDLLCall
cfset extracted = #mid(str,findnocase(%---,str) +
4,findnocase(---%,str) - (findnocase(%---,str) + 4))#
Basically, find the index of the first occurence of the open
6 matches
Mail list logo