Re: strip ntext chars

2012-10-19 Thread Raymond Camden
Ben doesn't drink beer, so I get his. On Thu, Oct 18, 2012 at 12:38 PM, John M Bliss bliss.j...@gmail.com wrote: Oh, sweet! Thanks! (I owe Ben SO MANY BEERS. And, of course, Ray.) On Thu, Oct 18, 2012 at 12:34 PM, Robert Harrison rob...@austin-williams.com wrote: Reread your post. You

Re: strip ntext chars

2012-10-19 Thread John M Bliss
Fair enough. On Fri, Oct 19, 2012 at 8:56 AM, Raymond Camden raymondcam...@gmail.comwrote: Ben doesn't drink beer, so I get his. On Thu, Oct 18, 2012 at 12:38 PM, John M Bliss bliss.j...@gmail.com wrote: Oh, sweet! Thanks! (I owe Ben SO MANY BEERS. And, of course, Ray.) On Thu, Oct

strip ntext chars

2012-10-18 Thread John M Bliss
Hi. I have a database column that is (for now) of type text. (For now) I cannot change it to ntext. What's the best way to use CF to strip out (or replace) characters that require ntext prior to inserting the text. Here's my first attempt which did not seem to work: cfloop index=charcounter from

Re: strip ntext chars

2012-10-18 Thread John M Bliss
Is this a stumper? Or a stupid question? :-) On Thu, Oct 18, 2012 at 8:42 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. I have a database column that is (for now) of type text. (For now) I cannot change it to ntext. What's the best way to use CF to strip out (or replace) characters

RE: strip ntext chars

2012-10-18 Thread Robert Harrison
You're converting from Ntext to Text? Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F 631.434.7022   http://www.austin-williams.com Blog:

RE: strip ntext chars

2012-10-18 Thread Robert Harrison
Reread your post. You may want to look at Ben Nadel's blog: http://www.bennadel.com/blog/1155-Cleaning-High-Ascii-Values-For-Web-Safeness-In-ColdFusion.htm Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite

Re: strip ntext chars

2012-10-18 Thread John M Bliss
Oh, sweet! Thanks! (I owe Ben SO MANY BEERS. And, of course, Ray.) On Thu, Oct 18, 2012 at 12:34 PM, Robert Harrison rob...@austin-williams.com wrote: Reread your post. You may want to look at Ben Nadel's blog:

Re: strip off HTML

2012-02-13 Thread Uwe Degenhardt
Hi Raymond, thanks for your reply and your time (Thank you Andy too), due to the fact that this issue isn't important for my customer anymore, I am not investigating this further. But I did a final check on the mechanism. The routine itself is working quite well. What I have seen analysing is,

strip off HTML

2012-02-12 Thread Uwe Degenhardt
Hi list, with this code I want to strip off HTML coding of the field: XYSHORTDESC of a mySQL-table-field. It doesn't really work, since it is giving back blank fields after running, and I don't know why. Does anybody have a clue why or have an idea which ColdFusion function I can take to strip

Re: strip off HTML

2012-02-12 Thread Raymond Camden
There's quite a few things here a bit off. CFQUERY NAME=GetData datasource=1234 maxrows=1 Select ID,XYSHORTDESC FROM xyarticles /CFQUERY cfloop query=GetData startrow=1 endrow=#GetData.recordcount# cfsavecontent variable=str cfoutput#GetData.XYSHORTDESC#/cfoutput /cfsavecontent Why

RE: strip off HTML

2012-02-12 Thread andy matthews
: strip off HTML Hi list, with this code I want to strip off HTML coding of the field: XYSHORTDESC of a mySQL-table-field. It doesn't really work, since it is giving back blank fields after running, and I don't know why. Does anybody have a clue why or have an idea which ColdFusion function I can take

Re: Regex to strip out non-numerics but leave decimal point

2011-01-19 Thread Nando
should be good to go. From: Nando d.na...@gmail.com Sent: Tuesday, January 18, 2011 2:09 PM To: cf-talk cf-talk@houseoffusion.com Subject: Regex to strip out non-numerics but leave decimal point I'm trying to strip out all non-numeric

Regex to strip out non-numerics but leave decimal point

2011-01-18 Thread Nando
I'm trying to strip out all non-numeric characters from some fields. The catch is I need the regex to leave in the decimal point, cuz these are rates that include cents. rereplace(rc.hourlyRateInvoicedToClient,'[^[:digit:]]','','all') I'm not sure how to work something like [^\.] into it. Can

re: Regex to strip out non-numerics but leave decimal point

2011-01-18 Thread Jason Fisher
-talk@houseoffusion.com Subject: Regex to strip out non-numerics but leave decimal point I'm trying to strip out all non-numeric characters from some fields. The catch is I need the regex to leave in the decimal point, cuz these are rates that include cents. rereplace

Re: Regex to strip out non-numerics but leave decimal point

2011-01-18 Thread Nando
. From: Nando d.na...@gmail.com Sent: Tuesday, January 18, 2011 2:09 PM To: cf-talk cf-talk@houseoffusion.com Subject: Regex to strip out non-numerics but leave decimal point I'm trying to strip out all non-numeric characters from some fields. The catch is I need the regex to leave

Re: Regex to strip out non-numerics but leave decimal point

2011-01-18 Thread Nathan Strutz
, January 18, 2011 2:09 PM To: cf-talk cf-talk@houseoffusion.com Subject: Regex to strip out non-numerics but leave decimal point I'm trying to strip out all non-numeric characters from some fields. The catch is I need the regex to leave in the decimal point, cuz these are rates that include cents

Re: strip alpha char

2008-11-10 Thread Wil Genovese
However, when using REReplace your forgetting the 'scope' attribute which lets you specify how many matches to replace. By specifying All you get them all. cfset NumbersOnly = ReReplace(Image12334blue1,[^\d],,All) This replaces everything that is not a Digit - Regex in this case is defining

Re: strip alpha char

2008-11-07 Thread Matt Quackenbush
Ops, I did that backwards... reReplace(myString, [\D], , all) On Fri, Nov 7, 2008 at 10:46 AM, Matt Quackenbush [EMAIL PROTECTED]wrote: reReplace(myString, [^A-Za-z], , all) ~| Adobe® ColdFusion® 8 software 8 is the

RE: strip alpha char

2008-11-07 Thread Adrian Lynch
REReplace() Adrian -Original Message- From: Chad Gray Sent: 07 November 2008 16:44 To: cf-talk Subject: strip alpha char I have a list of file names and I only want the numbers in the file names. I don't want any alpha characters. I can use RE to find the numbers, but it get

RE: strip alpha char

2008-11-07 Thread Chad Gray
Ah... REReplace... I only knew of REFind... THANKS! -Original Message- From: Matt Quackenbush [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 11:50 AM To: cf-talk Subject: Re: strip alpha char Ops, I did that backwards... reReplace(myString, [\D], , all

Re: strip alpha char

2008-11-07 Thread Matt Quackenbush
String functions: http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_18.html#1099887 :-) On Fri, Nov 7, 2008 at 10:57 AM, Chad Gray [EMAIL PROTECTED] wrote: Ah... REReplace... I only knew of REFind... THANKS!

RE: strip alpha char

2008-11-07 Thread Andy Matthews
There's also REMatch (new in CF8) which returns the actual string matched instead of just the position of that string. -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 10:57 AM To: cf-talk Subject: RE: strip alpha char Ah... REReplace... I

strip alpha char

2008-11-07 Thread Chad Gray
. Is there some magic CF function to take strings like this an strip the alpha character? Image12334blue Image12323red I want just the numbers: 12334 12323 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic

Re: strip alpha char

2008-11-07 Thread Peter Boughton
Is there some magic CF function to take strings like this an strip the alpha character? With CF8 (and equiv) there is a new rematch function, which would allow: cfset NumbersOnly = rematch( 'Image12334blue' , '\d+' )/ Which is selecting the numbers rather than stripping the non-numbers

Re: strip alpha char

2008-11-07 Thread Matt Quackenbush
the starting position of the number and the ending of the numbers then using the mid function to get the number. Is there some magic CF function to take strings like this an strip the alpha character? Image12334blue Image12323red I want just the numbers: 12334 12323

strip all non-numeric characters from a string

2007-08-14 Thread Matthew Smith
We are having an issue with users entering their phone numbers and credit card info. How would I strip a string of all non-numeric characters. I'm sure it involves rereplace() but I'm no good with regular expressions. Thanks for any help. Right now for the credit card I have this which just

Re: strip all non-numeric characters from a string

2007-08-14 Thread Adrian Moreno
entering their phone numbers and credit card info. How would I strip a string of all non-numeric characters. I'm sure it involves rereplace() but I'm no good with regular expressions. Thanks for any help. Right now for the credit card I have this which just strips out spaces and dashes

Re: strip all non-numeric characters from a string

2007-08-14 Thread Charlie Griefer
cfset attributes.billingCardNumber = rereplace(attributes.billingCardNumber, '[^0-9]', '', 'all') / On 8/14/07, Matthew Smith [EMAIL PROTECTED] wrote: We are having an issue with users entering their phone numbers and credit card info. How would I strip a string of all non-numeric characters

Re: strip all non-numeric characters from a string

2007-08-14 Thread Barney Boisvert
num = REReplace(num, [^0-9]+, , all); cheers, barneyb On 8/14/07, Matthew Smith [EMAIL PROTECTED] wrote: We are having an issue with users entering their phone numbers and credit card info. How would I strip a string of all non-numeric characters. I'm sure it involves rereplace() but I'm

Re: strip all non-numeric characters from a string

2007-08-14 Thread Brian Kotek
] wrote: We are having an issue with users entering their phone numbers and credit card info. How would I strip a string of all non-numeric characters. I'm sure it involves rereplace() but I'm no good with regular expressions. Thanks for any help. Right now for the credit card I have this which

RE: strip all non-numeric characters from a string

2007-08-14 Thread Jake Churchill
:10 PM To: CF-Talk Subject: Re: strip all non-numeric characters from a string num = REReplace(num, [^0-9]+, , all); cheers, barneyb On 8/14/07, Matthew Smith [EMAIL PROTECTED] wrote: We are having an issue with users entering their phone numbers and credit card info. How would I strip a string

RE: strip all non-numeric characters from a string

2007-08-14 Thread Billy Cox
I use the following UDF: cfscript function fnNumbersOnly(str) { return reReplace(str,[^[:digit:]],,all); } /cfscript -Original Message- From: Matthew Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 3:47 PM To: CF-Talk Subject: strip all non-numeric characters

RE: strip all non-numeric characters from a string

2007-08-14 Thread Matthew Smith
Thanks to all that replied! -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 3:16 PM To: CF-Talk Subject: RE: strip all non-numeric characters from a string I think you can also do num = REReplace(num, \D, , all); _ Jake Churchill

Re: Strip HTML from a Collection

2007-05-01 Thread Raymond Camden
] Sent: Monday, April 30, 2007 10:09 PM To: CF-Talk Subject: Strip HTML from a Collection How do people on this list deal with stripping html a column in a query prior to loading the query into a coldfusion collection

Re: Strip HTML from a Collection

2007-05-01 Thread Raymond Camden
You can use what the previous guy said - and replace or escape the html as you want when outputting your search. You may also want to consider this post: http://ray.camdenfamily.com/index.cfm/2007/4/17/Quick-example-of-cleaning-up-Verity-results On 4/30/07, Mark Flewellen [EMAIL PROTECTED]

RE: Strip HTML from a Collection

2007-05-01 Thread Bobby Hartsfield
That too :-) Cheers, Previous Guy -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 7:05 AM To: CF-Talk Subject: Re: Strip HTML from a Collection Actually for #2, you want to just use htmleditformat cfset cleantext = htmlEditFormat

Re: Strip HTML from a Collection

2007-05-01 Thread Mark Flewellen
Thanks guys what I was wanting was to clean it before it was indexed though, and the only way i can think of doing this is to strip the query using regex then rebuild the query and load this into cfindex. Would this be correct way to deal with this problem

Strip HTML from a Collection

2007-04-30 Thread Mark Flewellen
How do people on this list deal with stripping html a column in a query prior to loading the query into a coldfusion collection? ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2

RE: Strip HTML from a Collection

2007-04-30 Thread Bobby Hartsfield
= replace(queryname.column, , lt;, all) / Good luck -Original Message- From: Mark Flewellen [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 10:09 PM To: CF-Talk Subject: Strip HTML from a Collection How do people on this list deal with stripping html a column in a query prior

Re: Strip HTML from a Collection

2007-04-30 Thread Mark Flewellen
The problem I am having is I load the data in including the html content via the query attribute in cfindex. When I output a summary sometimes it gets cut of through a tag. This is what I do to index cfindex collection=news action=refresh type=custom query=qry_NewsList key=newsid title=title

=?iso-8859-1?Q?Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-08 Thread stylo stylo
then you're pre-cf7. what version of cf? this is just locally, testing it. However cf7 on the host gives the same type error after setting to setLocale(en_GB) - btw, moving to BD shortly if that makes a difference. Parameter 1, �66.16, of function LSParseCurrency is an invalid currency

=?iso-8859-1?Q?Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-08 Thread stylo stylo
using cf7, utf-8, that snippet works fine. I checked GetEncoding(URL) and it said utf-8 ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial

=?iso-8859-1?Q?Re: Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-08 Thread Paul Hastings
stylo stylo wrote: However cf7 on the host gives the same type error after setting to setLocale(en_GB) - btw, moving to BD shortly if that makes a difference. no, it cannot give the same error, cf7 accepts java style locales. your host is using a cf version prior to 7. I have no idea,

=?iso-8859-1?Q?Re: Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-08 Thread Paul Hastings
stylo stylo wrote: using cf7, utf-8, that snippet works fine. I checked GetEncoding(URL) and it said utf-8 and did you set it previously? in any case that's what cf's expecting/using not what the other app's producing. can you post the entire url var or point to a public page that exhibits

=?iso-8859-1?Q?Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-08 Thread stylo stylo
Nothing worked so ended up regexing them and resetting them. Thanks for the help anyway. ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity.

=?iso-8859-1?Q?Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-08 Thread stylo stylo
However cf7 on the host gives the same type error Just to clarify, I meant the same ?66 is not a number error, not a locale error. ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIA’s for your business.

=?iso-8859-1?Q?Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-07 Thread stylo stylo
setLocale(en_GB); pounds=lsParseCurrency(url. currencyVar); That local it says doesn't exist and gives an error. I used setLocale(English (UK)) but I still get: Parameter 1, �6.16, of function LSParseCurrency is an invalid currency value in the current locale. Ideas?

=?iso-8859-1?Q?Re: Re: how can I strip a UK =A3 sign from a u rl variable??=

2007-04-07 Thread Paul Hastings
stylo stylo wrote: That local it says doesn't exist and gives an error. then you're pre-cf7. what version of cf? Parameter 1, �6.16, of function LSParseCurrency is an invalid currency value in the current locale. what encoding is the page that produced the url value, the page accepting

=?iso-8859-1?Q?how can I strip a UK =A3 sign from aurl va riable?3F?=3D?=

2007-04-06 Thread stylo stylo
I'm stuck trying to strip a UK pound symbol £ from url variables. I've tried a bunch of things but just keep getting an error like ?50 cannot be converted to a number. Tried stripping the symbol itself, %A3 which shows up in the address bar after entering it (think this is server dependent

=?iso-8859-1?Q?Re: how can I strip a UK =A3 sign from aurl va riable?3F3D?=3D?=

2007-04-06 Thread Paul Hastings
stylo stylo wrote: Ideas? I can't do anything about the symbol being in there, coming from a dumb program elsewhere. setLocale(en_GB); pounds=lsParseCurrency(url.currencyVar); ~| ColdFusion MX7 and Flex 2 Build sales

Re: How to strip a #

2006-11-13 Thread Claude Schneegans
how about this... cfset foo = replace(bar, #Chr(35)#, , all/ Or even more simply: cfset foo = replace(bar, Chr(35), , all ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address:

RE: How to strip a #

2006-11-13 Thread Rick Faircloth
- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 9:57 AM To: CF-Talk Subject: Re: How to strip a # how about this... cfset foo = replace(bar, #Chr(35)#, , all/ Or even more simply: cfset foo = replace(bar, Chr(35), , all

Re: How to strip a #

2006-11-13 Thread John Cox
Sorry, Rick, haven't tried this yet, got distracted on a different problem. Will let you know! On 11/13/06, Rick Faircloth [EMAIL PROTECTED] wrote: cfset foo = replace(bar, Chr(35), , all Thought I'd venture out of always asking questions to possibly try to offer an answer to someone.

Re: How to strip a #

2006-11-13 Thread RichL
cfset foo = hello##goodbye !--- results in 'hello#goodbye' --- cfset bar = replace(foo, Chr(35), , all) cfoutput foo: #foo# br / bar: #bar# /cfoutput Works just fine On 11/13/06, John Cox [EMAIL PROTECTED] wrote: Sorry, Rick, haven't tried this yet, got distracted on a

RE: How to strip a #

2006-11-13 Thread Snake
Echo -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: 13 November 2006 14:57 To: CF-Talk Subject: Re: How to strip a # how about this... cfset foo = replace(bar, #Chr(35)#, , all/ Or even more simply: cfset foo = replace(bar, Chr(35), , all

Re: How to strip a #

2006-11-13 Thread Claude Schneegans
Yeah...that's what someone else suggested, but it didn't work... Ahhh..., may be not under CF 4.0 ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED])

Re: How to strip a #

2006-11-13 Thread John Cox
Thanks all for the help on this. I think I am looking at the problem just a bit wrong, because all the suggestions should work, but none are. I'm going to attack the problem from a different angle. Once again, thanks for the suggestions!

How to strip a #

2006-11-12 Thread John Cox
I am trying to strip out a # (pound) from a string. I would have thought this would have worked: cfset foo = replace(bar, #, , all) / That didn't work, as it thought it was a var (missing an argument). I tried to escape it: cfset foo = replace(bar, ##, , all) / But that didn't seem to work

RE: How to strip a #

2006-11-12 Thread Snake
Try this cfset foo = replace(bar, chr(35), , all) / -- Russ Michaels -Original Message- From: John Cox [mailto:[EMAIL PROTECTED] Sent: 13 November 2006 00:51 To: CF-Talk Subject: How to strip a # I am trying to strip out a # (pound) from a string. I would have thought this would

Re: How to strip a #

2006-11-12 Thread John Cox
On 11/12/06, Snake [EMAIL PROTECTED] wrote: Try this cfset foo = replace(bar, chr(35), , all) / hmm, that doesn't work either, seems like it should though. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of

RE: How to strip a #

2006-11-12 Thread Rick Faircloth
Assuming the Chr(35) is correct for a #, how about this... cfset foo = replace(bar, #Chr(35)#, , all/ -Original Message- From: John Cox [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 8:13 PM To: CF-Talk Subject: Re: How to strip a # On 11/12/06, Snake [EMAIL PROTECTED

RE: How to strip a #

2006-11-12 Thread Bobby Hartsfield
3 solutions (including one of your own original ones) work for replacing #'s. maybe you should take a closer look at the contents of foo? -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 9:36 PM To: CF-Talk Subject: RE: How to strip

RE: How to strip a #

2006-11-12 Thread Kevin Aebig
Ah... why not just escape it by doubling up? cfset foo = replace(bar, ##, , all) / Cheers, !k -Original Message- From: John Cox [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 6:51 PM To: CF-Talk Subject: How to strip a # I am trying to strip out a # (pound) from a string

Strip dots out of ip address

2006-06-27 Thread coldfusion . developer
All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244906

Re: Strip dots out of ip address

2006-06-27 Thread Bryan F. Hogan
replace(yoyoma, '.', '', 'all') - Original Message - From: [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 27, 2006 4:33 PM Subject: Strip dots out of ip address All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part

RE: Strip dots out of ip address

2006-06-27 Thread Ben Nadel
] Sent: Tuesday, June 27, 2006 4:33 PM To: CF-Talk Subject: Strip dots out of ip address All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D

Re: Strip dots out of ip address

2006-06-27 Thread Nick Tong - TalkWebSolutions.co.uk
cfset newip = replace(ipAddress,.,,all) / ? On 27/06/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: All, I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 Thanks. D

Re: Strip dots out of ip address

2006-06-27 Thread Phillip B. Holmes
No need for anything fancy there: cfscript strIP = '69.124.49.27'; strOut = replace(strIP,'.','','ALL'); writeOutput(strOut); /cfscript Best, Phillip Holmes Quoting [EMAIL PROTECTED]: All, I'm trying to strip the dots out of ip addresses. I'm trying to use

RE: Strip dots out of ip address

2006-06-27 Thread Dave Watts
I'm trying to strip the dots out of ip addresses. I'm trying to use it as part of a unique numeric value for e-mail confirmation. 69.124.49.27 IP address dotted-quad values can be converted directly into integers: http://www.cflib.org/udf.cfm?ID=946 I wouldn't recommend just removing

RE: Strip dots out of ip address

2006-06-27 Thread Dawson, Michael
-Original Message- From: Phillip B. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 3:42 PM To: CF-Talk Subject: Re: Strip dots out of ip address No need for anything fancy there: cfscript strIP = '69.124.49.27'; strOut = replace(strIP,'.','','ALL'); writeOutput

Re: Strip dots out of ip address

2006-06-27 Thread Sam Farmer
On 6/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to use it as part of a unique numeric value for e-mail confirmation. Be careful though. IP addresses can change all the time. I rebooted today and got a different one. Cheers, Sam

Sot: FCKeditor help - strip out script tags...

2006-05-04 Thread Katz, Dov B \(IT\)
How can I strip out script tags? I want users to be able to edit the HTML source, using fckeditor, but I want to disallow certain tags, and scrub them out before submitting my form Any ideas? Thanks Dov NOTICE: If received in error

RE: FCKeditor help - strip out script tags...

2006-05-04 Thread Ben Nadel
I am not 100% familiar with the FCK editor (we use the Xstandard editor here... www.xstandard.com)... But my guess would be that in Javascript, you can strip out the tags after you grab the value from the form field that FCK editor saves to... Someone else here can talk about how that happens

Re: FCKeditor help - strip out script tags...

2006-05-04 Thread Matt Robertson
Before you commit the form field input, scrub it like this, which assumes your edit field is form.richText cfset form.richText = REReplaceNoCase(form.richText, (SCRIPT[^]*)(.*(/SCRIPT[^]*))?, , ALL) Then do what you will with form.richText (i.e. save it in a db table). [EMAIL PROTECTED]

Re: Sot: FCKeditor help - strip out script tags...

2006-05-04 Thread Denny Valliant
] wrote: How can I strip out script tags? I want users to be able to edit the HTML source, using fckeditor, but I want to disallow certain tags, and scrub them out before submitting my form Any ideas? Thanks Dov NOTICE: If received

Re: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-18 Thread cf coder
Thank you guys for pointing me to the right direction. The udf StripTags is really god sent. Thanks cfcoder CFLib.org is your friend :) Check out the function called StripTags. It does exactly what you want. http://www.cflib.org/udf.cfm?ID=774 Cedric

Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread cf coder
Hello Everybody, I need your help with regular expressions. I'm trying to strip out HTML tags from a string to pass it to a flash movie. I've found a script that does this but the problem is that I want to keep some html formatting specifically the following tags: b, br, span, i, strong, div

Re: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Rob Wilkerson
information on negative lookaheads you can look at the livedocs or google 'regex negative lookahead'. hth. On 4/13/06, cf coder [EMAIL PROTECTED] wrote: Hello Everybody, I need your help with regular expressions. I'm trying to strip out HTML tags from a string to pass it to a flash movie. I've

Re: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Jerry Johnson
. I'm trying to strip out HTML tags from a string to pass it to a flash movie. I've found a script that does this but the problem is that I want to keep some html formatting specifically the following tags: b, br, span, i, strong, div, p

Re: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread S . Isaac Dealey
, I need your help with regular expressions. I'm trying to strip out HTML tags from a string to pass it to a flash movie. I've found a script that does this but the problem is that I want to keep some html formatting specifically the following tags: b, br, span, i, strong, div, p s

Re: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Cedric Villat
CFLib.org is your friend :) Check out the function called StripTags. It does exactly what you want. http://www.cflib.org/udf.cfm?ID=774 Cedric ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237707 Archives:

Re: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Jose Diaz
HI cfCoder You could try something along these lines: reReplaceNoCase(str,(font)[^]*,,all) replaceNoCase(returnStr,/font,,all) You could then be selective to the tags you wish to strip out. Hope this helps. All the best Jose Diaz On 4/13/06, cf coder [EMAIL PROTECTED] wrote: Hello

Strip $ and , from entered numbers

2006-03-18 Thread Les Mizzell
Trying to turn $123,456 into 123456 Getting rid of the $ sign is easy... #Replace(mynumber, $, , ALL)# But I'm not sure how to kill the $ and the , at the same time with the least amount of fuss... ~| Message:

Re: Strip $ and , from entered numbers

2006-03-18 Thread Charlie Griefer
rereplace(myNumber, '[$,]', '', 'all') On 3/18/06, Les Mizzell [EMAIL PROTECTED] wrote: Trying to turn $123,456 into 123456 Getting rid of the $ sign is easy... #Replace(mynumber, $, , ALL)# But I'm not sure how to kill the $ and the , at the same time with the least amount of fuss...

Re: Strip $ and , from entered numbers

2006-03-18 Thread Michael Traher
I must confess to being a regex beginner so it might not be the most elegant way but cfset num = $123,456 cfset newnum = rereplace(num,[^[:digit:]],,ALL) cfoutput#num#,#newnum#/cfoutput On 3/18/06, Les Mizzell [EMAIL PROTECTED] wrote: Trying to turn $123,456 into 123456 Getting rid of the $

Re: Strip $ and , from entered numbers

2006-03-18 Thread Rick Root
Michael Traher wrote: I must confess to being a regex beginner so it might not be the most elegant way but cfset num = $123,456 cfset newnum = rereplace(num,[^[:digit:]],,ALL) cfoutput#num#,#newnum#/cfoutput This would probably work better than the other option because the other option

RE: Strip $ and , from entered numbers

2006-03-18 Thread Michael T. Tangorre
I was working on. I needed to strip out anything EXCEPT digits and a period. I used the following: var _regEx = /[^0-9\.]*/g; var _br = document.offerLetterRequest.billRate.value; var _billRate = ( isNaN(parseFloat(_br.replace(_regEx,''))) ) ? 0.00 : parseFloat(_br.replace(_regEx,'')); You can

Re: Strip Email function

2006-03-10 Thread Rick Root
S. Isaac Dealey wrote: Why would you strip those characters out rather than just use an isEmail() function and refuse to accept invalid input? How about: isVALID(email,#form.email#) Damn it, looks like I need to read the CFMX7 function and tag list again! I didn't know about this one. What

Strip Email function

2006-03-09 Thread Mike | NZSolutions Ltd
Hi all, I have just created a simple function to remove characters that may cause the cfmail tag to crash... cfcomponent cffunction name=strip_email output=false access=public returntype=string cfargument name=email type=string required=true !--- remove void characters from

Re: Strip Email function

2006-03-09 Thread Rick Root
Mike | NZSolutions Ltd wrote: Hi all, I have just created a simple function to remove characters that may cause the cfmail tag to crash... Why would you strip those characters out rather than just use an isEmail() function and refuse to accept invalid input? Seems kinda silly to strip content

Re: Strip Email function

2006-03-09 Thread Les Mizzell
Why would you strip those characters out rather than just use an isEmail() function and refuse to accept invalid input? How about: isVALID(email,#form.email#) Works good for me... ~| Message: http://www.houseoffusion.com

Re: Strip Email function

2006-03-09 Thread Les Mizzell
How about: isVALID(email,#form.email#) Shouldn't that be isValid(email,form.email) ? Probably! It's late and my last cup of coffee has worn off! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234981 Archives:

Strip HTML from string except for specified...

2006-03-03 Thread Andy Matthews
, March 03, 2006 1:27 PM To: CF-Talk Subject: RE: using WHERE with ValueList? Can anyone help me to find a function tha strips all html from a string except for the tags I specify. For example, I want to only allow a, p, h*, and img tags, and strip everything else

Strip HTML and display

2006-01-30 Thread cedric
I'm having trouble displaying a large chunk of text properly. Basically, the text looks something like: This is a test b style=color:redwith/b some test that will wrap around the different lines. I b style=color:red;text-decoration:none want more text here/b Essentially, I want to take out all

Re: Strip HTML and display

2006-01-30 Thread Jerry Johnson
Not quite sure what you are trying to accomplish, but I'll give it a whack. Are you saying that any CR that happens right after a tag should not happen, then: !--- replace all tag/newlines with just tags --- cfset newString=rereplace(str,[#chr(10)##chr(13)#]+,,ALL) !--- remove all tags --- cfset

Re: Strip HTML and display

2006-01-30 Thread Cedric Villat
My desired output didn't show up quite right. Anyway, I'm not trying to get rid of CR's after tags. Basically, this text has already been wrapped at some length (65 chars). The problem is it was wrapped text was wrapped while taking into account the HTML. I'm trying to unwrap the text, then

RE: Strip HTML and display

2006-01-30 Thread Dawson, Michael
This might help solve your problem: http://www.cflib.org/udf.cfm?ID=249 M!ke -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 7:23 PM To: CF-Talk Subject: Re: Strip HTML and display My desired output didn't show up quite right. Anyway

Strip ascii 128 and above

2005-09-09 Thread Kevin Bridges
Is there a simple way to strip out all characters above ascii 127 from a string? Thanks, Kevin Bridges ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting

Re: Strip ascii 128 and above

2005-09-09 Thread Kevin Bridges
Ok I answered my own question: for (i = 128; i LTE 159; i = i + 1) text = Replace(text, Chr(i), , All); Kevin Bridges wrote: Is there a simple way to strip out all characters above ascii 127 from a string? ~| Discover

RE: Strip ascii 128 and above

2005-09-09 Thread Ben Nadel
[mailto:[EMAIL PROTECTED] Sent: Friday, September 09, 2005 9:44 AM To: CF-Talk Subject: Re: Strip ascii 128 and above Ok I answered my own question: for (i = 128; i LTE 159; i = i + 1) text = Replace(text, Chr(i), , All); Kevin Bridges wrote: Is there a simple way to strip out all characters

  1   2   3   >