[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Andrew Scott








Steve,

 

Thank you very much, I knew I was close
but wasn’t sure what I was doing wrong as my reg expressions aren’t
crash hotJ



 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au

Phone: +613  8676 4223

Mobile: 0404 998 273

 











From:
cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Steve Onnis
Sent: Monday, 19 June 2006 11:37
AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: JS Reg
_expression_



 





 string = "sdfsg sdgf sdgf SD gf sdgf <META> asfasdf asdf asdf";
 Test = string.replace(/(<\/?META[^>]*>)/ig,'');
 document.getElementById("bla").value = Test;
  remember /g = global replace /i is non case sensitive /gi is both together   () to group strings together and [] to define a character class   that should work   Steve -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com]On Behalf Of Andrew Scott Sent: Monday, June 19, 2006 11:25 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: JS Reg _expression_ Yes,   Because I have a DevNet serial here and when returning data via Ajax CF places the tag in the string and JS craps out with this info in the stringL       Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613  8676 4223 Mobile: 0404 998 273   --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---

[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Steve Onnis




 string = "sdfsg sdgf sdgf SD gf sdgf asfasdf asdf asdf";
 Test = string.replace(/(<\/?META[^>]*>)/ig,'');
 document.getElementById("bla").value = Test;
  remember /g = global replace /i is non case sensitive /gi is both together   () to group strings together and [] to define a character class   that should work   Steve -Original Message-From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Andrew ScottSent: Monday, June 19, 2006 11:25 AMTo: cfaussie@googlegroups.comSubject: [cfaussie] Re: JS Reg _expression_ Yes,   Because I have a DevNet serial here and when returning data via Ajax CF places the tag in the string and JS craps out with this info in the stringL       Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613  8676 4223 Mobile: 0404 998 273   --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---

[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Andrew Scott








Yes,

 

Because I have a DevNet serial here and
when returning data via Ajax CF places the  tag in the string and
JS craps out with this info in the stringL

 



 

 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au

Phone: +613  8676 4223

Mobile: 0404 998 273

 






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "cfaussie" group.  To post to this group, send email to cfaussie@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cfaussie  -~--~~~~--~~--~--~---






[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Steve Onnis



what 
are you trying to do with the _expression_? remove the META 
tags?

  -Original Message-From: cfaussie@googlegroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Andrew 
  ScottSent: Monday, June 19, 2006 11:03 AMTo: 
  cfaussie@googlegroups.comSubject: [cfaussie] Re: JS Reg 
  _expression_
  
  Ok, call me stupid 
  but it produces a JS illegal character in firefox, so that’s why I placed the 
  ‘’ around the _expression_?
   
  
   
   
  Senior Coldfusion 
  Developer
  Aegeon Pty. 
  Ltd.
  www.aegeon.com.au
  Phone: +613 
   8676 4223
  Mobile: 0404 998 
  273
   
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "cfaussie" group.  To post to this group, send email to cfaussie@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cfaussie  -~--~~~~--~~--~--~---


[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Andrew Scott








Ok, call me stupid but it produces a JS
illegal character in firefox, so that’s why I placed the ‘’
around the _expression_?

 



 

 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au

Phone: +613  8676 4223

Mobile: 0404 998 273

 






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "cfaussie" group.  To post to this group, send email to cfaussie@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cfaussie  -~--~~~~--~~--~--~---






[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Steve Onnis



and 
maybe best to use the non case sensitive and global extensions as 
well
 
Test = 
string.replace(/]META*>/ig,''); 
 

  -Original Message-From: cfaussie@googlegroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Blair 
  McKenzieSent: Monday, June 19, 2006 10:40 AMTo: 
  cfaussie@googlegroups.comSubject: [cfaussie] Re: JS Reg 
  _expression_You define regex strings with //, not '':
  Test = 
  string.replace(/]META*>/,''); 
  Blair
  On 6/19/06, Andrew 
  Scott <[EMAIL PROTECTED]> 
  wrote: 
  



Can anyone tell me 
what I did wrong with this JS reg _expression_?
 
Test = 
string.replace(']META*>','');
 

 
 
Senior Coldfusion 
Developer
Aegeon Pty. 
Ltd.
www.aegeon.com.au 

Phone: +613 
 8676 4223
Mobile : 0404 998 
273
 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "cfaussie" group.  To post to this group, send email to cfaussie@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cfaussie  -~--~~~~--~~--~--~---


[cfaussie] Re: JS Reg Expression

2006-06-18 Thread Blair McKenzie
You define regex strings with //, not '':Test = string.replace(/]META*>/,'');
BlairOn 6/19/06, Andrew Scott <[EMAIL PROTECTED]> wrote:
















Can anyone tell me what I did wrong with
this JS reg _expression_?

 

Test = string.replace(']META*>','');

 



 

 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au


Phone: +613  8676 4223

Mobile
: 0404 998 273

 














--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "cfaussie" group.  To post to this group, send email to cfaussie@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cfaussie  -~--~~~~--~~--~--~---