Re: Replacing characters in a string

2009-08-20 Thread Peter Boughton
This wouldn't match anchor tags with upper case, but could be changed like so: /?[a|A][^]* You've got two syntaxes mixed up there. (?:a|A) or [aA] is what you want - no bar needed for square brackets. And I think it might be best to use a lazy match: /?[a|A][^]+ That's not a lazy

Re: Replacing characters in a string

2009-08-20 Thread Jason Fisher
Good call on the parens. I had those in the original since I had ripped from code that did use the /1 element later on. Also, you could use #reReplaceNoCase()# as an alternative to [aA] ... but I like the [aA] better, for no particular reason.

Replacing characters in a string

2009-08-19 Thread Rick Sanders
Hey all, I'm trying to replace a hyperlink and just display the text. I need to remove the a href=http://www.google.ca;www.google.ca http://www.google.ca%3c/a /a from text within fckeditor and just display the text www.google.ca I tried finding a setting for the editor so it doesn't

re: Replacing characters in a string

2009-08-19 Thread Jason Fisher
Try this: cfset ad = reReplace(form.addesc, (/?a[^]*), , all) / ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

RE: Replacing characters in a string

2009-08-19 Thread Andy Matthews
-Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: Wednesday, August 19, 2009 2:38 PM To: cf-talk Subject: re: Replacing characters in a string Try this: cfset ad = reReplace(form.addesc, (/?a[^]*), , all

RE: Replacing characters in a string

2009-08-19 Thread Rick Sanders
Hello Andy Jason, Thank you so much, this worked well. I wasn't sure of the syntax so this really helped. Kind regards, Rick -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: August-19-09 6:19 PM To: cf-talk Subject: RE: Replacing characters in a string

Replacing characters in a string

2003-01-07 Thread Ryan Mitchell
This should be a simple enough one... I have a credit card number, 16 digits long, and I want to star (*) out the middle 8. How do I do this? TIA Ryan ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4

RE: Replacing characters in a string

2003-01-07 Thread Robertson-Ravo, Neil (RX)
take the numberread the first 8 numbers and the output them with hardcoded *'s. simple Or do you mean by Javascript as they type? N -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 12:56 To: CF-Talk Subject: Replacing characters in a string

Re: Replacing characters in a string

2003-01-07 Thread Ryan Mitchell
Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 12:56 To: CF-Talk Subject: Replacing characters in a string This should be a simple enough one... I have a credit card number, 16 digits long, and I want to star (*) out the middle 8. How do I do this? TIA

RE: Replacing characters in a string

2003-01-07 Thread Pascal Peters
Insert(,RemoveChars(ccnumber,5,8),4) -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: dinsdag 7 januari 2003 13:56 To: CF-Talk Subject: Replacing characters in a string This should be a simple enough one... I have a credit card number, 16 digits long

RE: Replacing characters in a string

2003-01-07 Thread Everett, Al
cfset maskedCCnumber=Left(CCnumber,4) RepeatString(*,8) right(CCnumber,4) Remember: Amex numbers are 15 digits long. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 7:56 AM To: CF-Talk Subject: Replacing characters in a string

RE: Replacing characters in a string

2003-01-07 Thread Ryan Emerle
characters in a string This should be a simple enough one... I have a credit card number, 16 digits long, and I want to star (*) out the middle 8. How do I do this? TIA Ryan ~| Archives: http://www.houseoffusion.com/cf_lists

RE: Replacing characters in a string

2003-01-07 Thread Ryan Emerle
Sorry.. MIDDLE eight.. Now it gets ugly with regEx.. cfset masked=REReplace(ccnum,([0-9]{4})[0-9]+([0-9]{4}),\1#repeatString('*',8)#\2) -Ryan -Original Message- From: Ryan Emerle Sent: Tuesday, January 07, 2003 10:47 AM To: CF-Talk Subject: RE: Replacing characters in a string Yet