On CFMX

stTmp = REFindNoCase('msg:"(.*?)";',str,1,true);
if(stTmp.pos[1]){
message = Mid(str,stTmp.pos[2],stTmp.len[2]);
}
else {
message = "";
}

ON CF5

stTmp = REFindNoCase('msg:"(([^"]|"[^;])*)";',str,1,true);
if(stTmp.pos[1]){
message = Mid(str,stTmp.pos[2],stTmp.len[2]);
}
else {
message = "";
}

> -----Original Message-----
> From: Ian [mailto:[EMAIL PROTECTED]
> Sent: maandag 17 mei 2004 22:39
> To: CF-Talk
> Subject: Regular _expression_ Help
>
> I'm trying to parse a string and pluck a bit of text, but my
> regex isn't working :( Here's a sample string:
>
> (msg:"My Message Here"; content:"My Content Here";)
>
> I want to return My Message Here.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to