<cfset x = 'asd1 2 3ASd.,<>}{:"asd' />
<cfscript>
writeoutput(x & '<br>');
writeoutput(rereplacenocase(x, '[^A-Za-z0-9 \"]', '', 'all'));
</cfscript>

-----Original Message-----
From: Mark A Kruger [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 10, 2006 1:29 PM
To: CF-Talk
Subject: FW: CFGURU: RegEx help (easy one)

Sorry for the double post (I put this on another list) I need some regext
help.

  _____  

Ok.. I got it (sort of)... 
 
I need the expression part to allow for letters, numbers, spaces and
quotation marks.... Can someone give me that?  I tried
[=""::space::a-zA-Z1-9]+-->  ... but I forgot how to get at the space... (I
hate Regex :).

  _____  


Can someone help me with this regesx?
 

<cfsavecontent variable="x">
 <div id="sidebar">
 <!-- InstanceBeginEditable name="Parent_Sidebar" -->
    <!-- TemplateBeginRepeat name="Sidebar" --><!-- TemplateBeginEditable
name="Sidebar Section" -->Sidebar Section<!-- TemplateEndEditable --><!--
TemplateEndRepeat -->
 <!-- InstanceEndEditable -->
  </div>
</cfsavecontent>

<Cfscript>
 writeoutput(REFindNoCase("<!-- TemplateBeginEditable [=""a-zA-Z]+ -->", x,
1));
 // create parser obj.
</CFSCRIPT>
 
 
Basically I am trying to "find" the string <!-- TemplateBeginEditable
name="something" -->
 
But I am not getting a result....
 
-Mark
 
Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com <http://www.cfwebtools.com/> 
www.coldfusionmuse.com <http://www.coldfusionmuse.com/> 
 <http://www.necfug.com/> www.necfug.com
 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259938
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to