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
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
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
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
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:
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
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:
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,
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
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
: 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
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
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
-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
.
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
, 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
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
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
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
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
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!
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
.
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
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
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
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
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
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
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
] 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
: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
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
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
]
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
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]
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
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
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
= 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
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
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
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
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,
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
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.
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.
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?
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
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
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
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:
-
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
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.
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
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
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])
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!
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
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
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
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
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
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
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
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
]
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
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
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
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
-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
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
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
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
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]
] 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
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
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
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
. 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
,
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
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:
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
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:
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...
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 $
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
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
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
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
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
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
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:
, 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
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
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
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
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
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
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
[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 - 100 of 223 matches
Mail list logo