On 11/10/06, Mark A Kruger <[EMAIL PROTECTED]> wrote:
> 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 :).

Do you mean a literal space character or any whitespace character?

literal space: [\" a-zA-Z1-9]+
any whitespace: [\"\sa-zA-Z1-9]+

>   _____
>
>
> 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" -->

Find ("/" characters denote the begin and end of the regex (ala JavaScript)):
/<!--\s*TemplateBeginEditable\s+name\s*=\s*"[a-zA-Z]+"\s*-->/

HTH.

Rob

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:259925
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