I have done this before. The old way is to refresh the page. The new way is to
toggle the rest of the content into view using Javascript.
Include JQuery
#left(var,500)#
MORE
#var#
LESS
Untested. You can put it into a function and pass in your div parameters, etc.
Faster than reloading the
It's the posix expression [:space:] inside of a character class (surrounded
by square brackets)
so... [[:space:]]
see http://livedocs.adobe.com/coldfusion/8/htmldocs/regexp_09.html
On Mon, Nov 2, 2009 at 12:44 PM, Don L wrote:
>
> >There are a number of UDFs on cflib that will handle this...
>There are a number of UDFs on cflib that will handle this...
>
>http://cflib.org/udf/FormatTeaser
>http://cflib.org/udf/FullLeft
>
>... and probably a few others. Browse the string library at
>http://cflib.org/library/StrLib
>
>On Mon, Nov 2, 2009 at 11:42 AM, D
>
>>
Great. Thanks Charlie. On
There are a number of UDFs on cflib that will handle this...
http://cflib.org/udf/FormatTeaser
http://cflib.org/udf/FullLeft
... and probably a few others. Browse the string library at
http://cflib.org/library/StrLib
On Mon, Nov 2, 2009 at 11:42 AM, Don L wrote:
>
> I'm trying to break a lar
]
Sent: 14 January 2009 09:37
To: cf-talk
Subject: Re: RegExp - how to escape a zero
> It would indeed appear that CF regexp just falls short.
So use Java RegEx.
And if you actually do have a 10th group, or want to make it more readable
> It would indeed appear that CF regexp just falls short.
So use Java RegEx.
And if you actually do have a 10th group, or want to make it more readable, you
can do:
~|
Adobe® ColdFusion® 8 software 8 is the most important
[mailto:jugg...@visi.com]
Sent: 13 January 2009 17:53
To: cf-talk
Subject: Re: RegExp - how to escape a zero
Here is a hack work around using REFind to return a struct of arrays
containing the match locations then doing string manipulation to replace the
parts you want to replace. The downside is it will
Here is a hack work around using REFind to return a struct of arrays
containing the match locations then doing string manipulation to replace the
parts you want to replace. The downside is it will only work on the first
occurrence of the match in the string. I can not find any other way to make
t
Here it is...
http://www.houseoffusion.com/groups/regex/thread.cfm/threadid:211#1128
> -Original Message-
> From: Paolo Piponi [mailto:pa...@epoq.co.uk]
> Sent: 13 January 2009 15:40
> To: cf-talk
> Subject: RegExp - how to escape a zero
>
> Never had this before and while there is a sim
I had the same problem a while ago. Can't remember what I did to fix it. I
think I posted to RegEx or CF-Talk. Will have a look-see...
Adrian
> -Original Message-
> From: Paolo Piponi [mailto:pa...@epoq.co.uk]
> Sent: 13 January 2009 15:40
> To: cf-talk
> Subject: RegExp - how to escape a
>>I think it will also remove the | character.
No: the | is the OR operator.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~
>>what's the difference between your solutions?
Technically, they do the same.
Probabilly one is a couple of microseconds more efficient, but I can't
even say which one.
The range set [_12] is probabilly more elegant.
The difference would be that with a range, you can only OR between
characters
Yeah, I read it as [1|2|_] within square brackets. My eyes playing
tricks on my mind.
On 9/27/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> Claude's (and mine) will work just fine. It won't replace the pipe since it
> isn't escaped. It will also replace 1 or more instances of any of the 3
> ch
Thanks Ben, Jerry, Claude, Rob.
> -Original Message-
> From: Ben Nadel [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 27, 2006 3:19 PM
> To: CF-Talk
> Subject: RE: regexp help
> Importance: High
>
> Ray,
>
> I don't think there is any rea
I meant to say:
This looks for any combinations of 1 or more combinations of _,1 or 2. It
is a greedy notation.
instead of:
This looks for any combinations of 1 or more combinations of _,1 or 3. It
is a greedy notation.
On 9/27/06, Teddy Payne <[EMAIL PROTECTED]> wrote:
>
> Ray,
> The notations
Ray,
The notations are pretty similar.
REReplace( strTest, "[_12]+", "", "ALL" )
This looks for any combinations of 1 or more combinations of _,1 or 3. It
is a greedy notation.
ReReplace (MyString, "_|1|2", "", "all")
This is more logical oriented meaning that _ or 1 or 2 exists, then remove
it.
lk
Subject: Re: regexp help
I don;t know that Claude's will work quite right. I think it will also
remove the | character.
The main difference is that Ben used the +, which says to replace 1 or
more adjacent occurances with null. This should be marginally faster
than not using the +, since
I don;t know that Claude's will work quite right. I think it will also
remove the | character.
The main difference is that Ben used the +, which says to replace 1 or
more adjacent occurances with null. This should be marginally faster
than not using the +, since is does them in groups. But you wil
using [] would be a nightmare.
..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 3:07 PM
To: CF-Talk
Subject: Re: regexp help
No practical
er of personal taste I suppose.
..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
-Original Message-
From: Ray Champagne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 2:54 PM
To: CF-Talk
Subject: RE: regexp help
Ben, Claude, just so I know, what's th
rereplace(str, '1|2|_', '', 'all')
-Original Message-
From: Ray Champagne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 2:16 PM
To: CF-Talk
Subject: regexp help
Can some tell me what the regexp would be to remove all instances of _ or 1
or 2 (that's underscore OR one OR
No practical difference. Ben took the shortcut of using a character
set rather than explicitly stating the "OR" ( | ) condition.
To be clear, though, either of these will remove any _, 1 or 2 from
your value. So "foo1bar" will become "foobar". If the chars to be
removed must be at the end of th
Ben, Claude, just so I know, what's the difference between your solutions?
Is it merely more than one way to skin a cat, or is one better than another?
>
> REreplace (MyString, "_|1|2", "", "all")
~|
Introducing the Fusion Au
rereplace(str, "[12_]","","ALL")
?
On 9/27/06, Ray Champagne <[EMAIL PROTECTED]> wrote:
> Can some tell me what the regexp would be to remove all instances of _ or 1
> or 2 (that's underscore OR one OR two) from a string?
>
>
>
> Like ffmpti_2 would become ffmpti or carfeed1 would become carfeed.
>>what the regexp would be to remove all instances of _ or 1
or 2 (that's underscore OR one OR two) from a string?
REreplace (MyString, "_|1|2", "", "all")
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Pleas
..
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
-Original Message-
From: Ray Champagne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 2:16 PM
To: CF-Talk
Subject: regexp help
Can some tell me what the regexp would be to r
are using with the USD codes so I left it like this: [A-Z]{2,3}
>
> I just hope that I have helped somewhere.
>
> Ian
>
>
> - Original Message -
> From: chris porter <[EMAIL PROTECTED]>
> Date: Mon, 30 Aug 2004 21:40:53 -0400
> Subject: Re: reg
do not know all the codes that
you are using with the USD codes so I left it like this: [A-Z]{2,3}
I just hope that I have helped somewhere.
Ian
- Original Message -
From: chris porter <[EMAIL PROTECTED]>
Date: Mon, 30 Aug 2004 21:40:53 -0400
Subject: Re: regexp help
To: CF-Talk <
I want to be 100% sure of
> what I'm getting and how. If there's a problem, then I want to know exactly
> what's up.
>
> _
>
>
>
> Why don;t you just go through the text as a list with CR as the
> delimiter? This way you can have much more fo
t; _
>
>From: chris porter [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 30, 2004 4:41 PM
>To: CF-Talk
>Subject: Re: regexp help
>
>
>and one last time
>
>DATA:
>
>Product Name
>Product NumberQty Est. Ship Date You
razy here but I pretty sure this would work. Any
future changes on what each feild would hold would be easy to change.
(beware I did not test it)
Ian
- Original Message -
From: Michael Dinowitz <[EMAIL PROTECTED]>
Date: Mon, 30 Aug 2004 18:23:04 -0400
Subject: RE: regexp help
To: CF-T
ssage -
From: Michael Dinowitz <[EMAIL PROTECTED]>
Date: Mon, 30 Aug 2004 16:49:48 -0400
Subject: RE: regexp help
To: CF-Talk <[EMAIL PROTECTED]>
Really fast (Using the multi-line move of CFMX)
^([^#chr(13)#]+)[[:space:]]+([0-9]+)[[:space:]]+([0-9]+)[[:space:]]+([0-9]{2
}/[0-9]{2
Why don;t you just go through the text as a list with CR as the
delimiter? This way you can have much more focused regular
expressions.
Just a thought,
Ian
- Original Message -
From: Michael Dinowitz <[EMAIL PROTECTED]>
Date: Mon, 30 Aug 2004 16:49:48 -0400
Subject: RE: regexp h
Subject: Re: regexp help
and one last time
DATA:
Product Name
Product NumberQty Est. Ship Date Your Ext.
Price
[dashed go here all the way across PITA email parser]
description of some item1
0344437 1 03/12/2004
OK, lets do the pattern dance. The product name will always be on it's own
line and followed by the product info? What is the number format (if any).
What can it contain (spaces, dashes, etc.). Is the quantity always there?
Ship date always there? in any specific format? Price always there? Always
and one last time
DATA:
Product Name
Product NumberQty Est. Ship Date Your Ext. Price
[dashed go here all the way across PITA email parser]
description of some item1
0344437 1 03/12/2004 USD 335.75
another des
Hmm got bit by that lines problem... good advanced warning that that will happen ;)
here is the text:
Product Name
Product NumberQty Est. Ship Date Your Ext. Price
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donation
Remember that the list removes all text that comes after a line of dashes.
You may want to repost that text you want to parse. On the other hand, your
in luck as I just finished another email parser to grab products out of an
email for entry into a DB (for mothernature.com). I should be able to hel
ailto:[EMAIL PROTECTED]
Sent: 23 October 2003 15:53
To: CF-Talk
Subject: RE: RegExp puzzle
-Original Message-
From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED]
Sent: donderdag 23 oktober 2003 16:36
To: CF-Talk
Subject: Re:RegExp puzzle
Sorry, I haven't made my question clear in the begin
-Original Message-
From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED]
Sent: donderdag 23 oktober 2003 16:36
To: CF-Talk
Subject: Re:RegExp puzzle
Sorry, I haven't made my question clear in the beginning. The goal is,
to skip letters and numbers, find/match/see if a string that contains
a
What you are saying with the regexp is that you want to match all
characters except:
letters, numbers and _ @ % $ (these are your valid characters)
As your string only contains valid characters (see above), the
block will not execute. Your original regexp would have the same result.
-Ori
Yes. You can use the posix class: [:alnum:] if you like.
[^[:alnum:[EMAIL PROTECTED]
-Original Message-
From: LI, Chunshen (Don) [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 October 2003 4:14 p.m.
To: CF-Talk
Subject: RE: RegExp puzzle
Great. Then would this [EMAIL PROTECTED] read
Great. Then would this [EMAIL PROTECTED] read:
find everything other than A through Z, a through z,
0 through 9, and @, and %, and $
?
Thanks.
Don Li
--- Matthew Walker <[EMAIL PROTECTED]> wrote:
>
>
>
>
> This will succeed if any white space, %, or # is
> found. Is that what you
> want? Wa
This will succeed if any white space, %, or # is found. Is that what you
want? Watch
-Original Message-
From: LI, Chunshen (Don) [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 October 2003 3:46 p.m.
To: CF-Talk
Subject: RegExp puzzle
Hi,
Some RegExp expertise would be appreciated.
Goal
Hi Jerry, was out the office yesterday [coder sees the light of day
shock] and just wanted to say cheers for the help after my last post
Good pointers in what I am needing to do in your code samples thanks
:-)
~~
And this is a simple replace and regex combo.
(This replace the end tag with a (hopefully) unused character, which should be much
easier to find than the endtag string)
","ø","ALL")>
#tstr#
#tstr2#
Jerry
~|
Archives:
tags and loop over that, removing them as I
find them.
HTH
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: David Collie (itndac) [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, March 26, 2003 11:17 AM
: To: CF-Talk
: Subject: RE: RegExp Hel
No CFMX upgrade for a while unfortunately, will look into the refind (if
I get time!)
Cheers to Neil, Jerry and Ben, much appreciated
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: 26 March 2003 16:30
To: CF-Talk
Subject: RE: RegExp Help
The easy answer (for me) is
H
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: David Collie (itndac) [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, March 26, 2003 11:17 AM
: To: CF-Talk
: Subject: RE: RegExp Help
:
:
: Hi all...
:
: All right guys I actually do wa
ssage-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: 26 March 2003 15:29
To: CF-Talk
Subject: RE: RegExp Help
Just be aware that if you have a page like
Between the waves and the shore
there's a boat here.
You'll get
Between here.
not
Between and the shore here.
Because that r
March 26, 2003 10:34 AM
: To: CF-Talk
: Subject: RE: RegExp Help
:
:
: FYI: The purpose was to rip out the HTML buttons of a report when
: converting to PDF
:
: Neil's RegExp did what I needed as I could guarantee that there would
: only be one set on the page that surrounded the HTML code
L PROTECTED]
Sent: 26 March 2003 15:01
To: CF-Talk
Subject: RE: RegExp Help
.*
I think, if not, nevermind...
Neil
> Can anyone help me with the RegExp for stripping out content
> between two
> defined tags... ie
>
>
> ...
> Content to strip out
> ...
way Cheers for your help everyone
PS anyone got any good resouces for learning RegExp?
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: 26 March 2003 15:21
To: CF-Talk
Subject: RE: RegExp Help
Can the tags contain other tags?
Will there ever be more than one set in the
king wierd questions about it.
:-)
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: David Collie (itndac) [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, March 26, 2003 10:25 AM
: To: CF-Talk
: Subject: RE: RegExp Help
:
:
: Hi Neil, Thanks fo
thats alright, thats about the only regexp I know..;-)
Neil
> Hi Neil, Thanks for getting back to me...
>
> Your RegExp has done the trick well under it and really need to
> brush up on my RegExp skills but am always put off by the
> horrible ones
> you see getting used!
>
> Much apprec
sday, March 26, 2003 10:03 AM
: To: CF-Talk
: Subject: Re: RegExp Help
:
:
: What version of CF?
: How long can the string be you are stripping it from?
: By strip out, do you want the string returned without these tags
: in it? (As if you replaced them with "")
: Are the these tags ever nes
:[EMAIL PROTECTED]
Sent: 26 March 2003 15:01
To: CF-Talk
Subject: RE: RegExp Help
.*
I think, if not, nevermind...
Neil
> Can anyone help me with the RegExp for stripping out content
> between two
> defined tags... ie
>
>
> ...
> Content to strip out
>
I am absolutely hopeless with RegExp and I know
there are experts on the list
-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: 26 March 2003 15:03
To: CF-Talk
Subject: Re: RegExp Help
What version of CF?
How long can the string be you are stripping it from?
By strip o
What version of CF?
How long can the string be you are stripping it from?
By strip out, do you want the string returned without these tags in it? (As if you
replaced them with "")
Are the these tags ever nested?
Jerry Johnson
>>> [EMAIL PROTECTED] 03/26/03 10:03AM >>>
Can anyone help me with th
.*
I think, if not, nevermind...
Neil
> Can anyone help me with the RegExp for stripping out content
> between two
> defined tags... ie
>
>
> ...
> Content to strip out
> ...
>
>
> I would need it to strip out all the content and the tags
> themselves as
> well...
~
Cheers Guys!
Worked like a charm!
Believe it or not, today I have a choice in what to use!
Kodjo ackah
Principal Consultant
concrete-media.com
__
Signup for the Fusion Authority news alert and keep up with the latest news in
> Just to bring this thread back onto topic and then end it, Mastering
> Regular Expessions 2 is out.
> http://www.oreilly.com/catalog/regex2/
> The best price is at buy.com while the best chance of getting it within
> the next week or two is going directly to O'Reilly.
Sorry Mike. :)
Isaac Deal
[^0-9]
On Thu, 1 Aug 2002, Kodjo Ackah wrote:
> Hi,
> The snippet below does check to ensure that a user puts in a digit in a
> form.
> The problem is - if I test this code like adding a letter to the digit
> it does not flag the error.
> I will like to ensure that only digits are allowed and if
Just to bring this thread back onto topic and then end it, Mastering Regular
Expessions 2 is out.
http://www.oreilly.com/catalog/regex2/
The best price is at buy.com while the best chance of getting it within the next week
or two is going directly to O'Reilly.
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 3:21 PM
> To: CF-Talk
> Subject: Re: regexp
>> Not to mention isNumeric() in J's post is ... well, illegal. It already
>> exist in CF and it'll throw an error. Heh, to bad
You could use a snippet...
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 3:21 PM
To: CF-Talk
Subject: Re: regexp
> Not to mention isNumeric() in J's post is ... well, illegal. It already
> exist in CF and it'll thro
> Not to mention isNumeric() in J's post is ... well, illegal. It already
> exist in CF and it'll throw an error. Heh, to bad we can overwrite those
> functions like you can in flash. ;)
Who's J? ... Yea, I knew it was illegal, it was just for the purpose of the
jab. :) I could have said "funct
> Not so fast, mister!
>
> The function you describe would be more appropriately
> named isInteger(). ;-)
>
> Patrick
Aha! The brass comes out. :) Yea, you're right... I'm sure there was a
rationalle for IsNumeric() validating integers... I guess then there is a
case for using REGex in a functio
> Well, he asked for RegEx and I gave him RegEx. The IsNumeric is better but
> I got directly into teaching mode. :)
Yea, it happens to all of us at one point or another. :) I wish I could get
paid for teaching this stuff, that would be awesome. :)
Isaac Dealey
Certified Advanced ColdFusion Dev
Not to mention isNumeric() in J's post is ... well, illegal. It already
exist in CF and it'll throw an error. Heh, to bad we can overwrite those
functions like you can in flash. ;)
~Todd
On Thu, 1 Aug 2002, Michael Dinowitz wrote:
> Well, he asked for RegEx and I gave him RegEx. The IsNumer
Well, he asked for RegEx and I gave him RegEx. The IsNumeric is better but I got
directly into teaching mode. :)
> > Try this:
> > ^[0-9]+$
> > A string must start (^) with a number ([0-9]), at least one number must
> > exist (+) and the string ends after one or more numbers ($).
>
>
> Oooh o
Not so fast, mister!
The function you describe would be more appropriately
named isInteger(). ;-)
Patrick
> -Original Message-
> From: S.Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 3:42 PM
> To: CF-Talk
> Subject: Re: regexp
>
>
&g
> The IsNumeric() approach is better than using RegEx. Less overhead.
>
>>
>>
>>
And after I went and poked fun at you, you backed me up. :)
Isaac Dealey
Certified Advanced ColdFusion Developer
www.turnkey.to
954-776-0046
__
The IsNumeric() approach is better than using RegEx. Less overhead.
>
>
>
>
> Isaac Dealey
> Certified Advanced ColdFusion Developer
>
> www.turnkey.to
> 954-776-0046
>
__
Structure your ColdFusion code with Fusebox. Get th
> Try this:
> ^[0-9]+$
> A string must start (^) with a number ([0-9]), at least one number must
> exist (+) and the string ends after one or more numbers ($).
Oooh oooh! ...
function IsNumeric(string) {
return yesnoformat(REFind("^[0-9]$",string));
}
isnumeric("3") = yes
usnumeric("3,
:
This only checks to see if a digit exists. Try something like this:
http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> Hi,
> The snippet below does check to ensure that a user puts in a digit in a
> form.
> The problem is - if I test this code like adding a letter to the digit
> it does not flag the error.
> I will like to ensure that only digits are allowed and if anyone as much
> as adds a digit after or befor
Try this:
^[0-9]+$
A string must start (^) with a number ([0-9]), at least one number must exist (+) and
the string ends after one or more numbers ($).
> Hi,
> The snippet below does check to ensure that a user puts in a digit in a
> form.
> The problem is - if I test this code like adding a le
ssage -
From: "Gyrus" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, May 25, 2002 2:40 AM
Subject: Re: RegExp Help
> - Original Message -
> From: "Matthew Walker" <[EMAIL PROTECTED]>
>
> ([^""]*)&qu
- Original Message -
From: "Matthew Walker" <[EMAIL PROTECTED]>
", "", "all")>
This will only replace one space per anchor. You need to run it
repeatedly to get them all.
-
I ended up with a similar solution in replying to the original poster -
with a conditi
Nobody seems to have replied, so here goes
You don't want to use (.*) as regexes are greedy and will try to match
the biggest string possible. If you have to s in a block, this regex
will match from the start of one to the end of the other.
", "", "all")>
This will only replace one space p
- Original Message -
From: "Wallick, Mike" <[EMAIL PROTECTED]>
Hey all. I'm trying to cook up a regexp to search a block of text for
links.
What I'm looking for is something like:
I want to read the block of text and replace spaces with %20 so links
won't
break.
Ya know, you get s tired on a friday :)
/#[^#]*#/ ("##[^##]*##" in CF)
Good weekend all!
--
Scott Van Vliet
Sempra Energy
555 W. 5th St., 21st Floor
Los Angeles, CA 90013
Tel > 213.244.5205
Email > [EMAIL PROTECTED]
"Hello Stupid, and welcome to your crappy computer."
- Strong Bad, Homesta
You rock! That does exactly what I need it to do.
Thanks Jerry
Mike
-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:13 PM
To: CF-Talk
Subject: Re: RegExp Help
]*>(.*).*","\1")>
(or something like that)
Jerr
]*>(.*).*","\1")>
(or something like that)
Jerry Johnson
>>> [EMAIL PROTECTED] 03/20/02 01:10PM >>>
Anyone Have a RegExp to get all content between the tags? I found a
UDF that parses out the , but I'm trying to modify it to parse out
the instead, but I'm not having much luck.
Any help would
Had to write it to make sure regex worked lol
- Original Message -
From: "Jeff Beer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 12:18 PM
Subject: RE: RegExp help needed
> Holy cow, Don - I was hoping for s
Don't forget to cflock the call to cffile! :)
Sam
- Original Message -
From: "Jeff Beer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 2:18 PM
Subject: RE: RegExp help needed
> Holy cow, Don - I was ho
Holy cow, Don - I was hoping for some tips - you wrote the whole darn
thingy!
I'll test it right away - thanks mucho for the assist!!
Regards,
Jeff
-Original Message-
From: Don Vawter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 1:29 PM
To: CF-Talk
Subject: Re: R
Try this:
startpos=1;
stTime=refindnocase("DateTime\:[ ]*(\{[^\}]*\})",mf,startpos,"yes");
while(startpos LT len(mf) and startpos GT 0 and stTime.pos[1] GT 0){
if(arraylen(stTime.pos) GT 1)
timeval=mid(mf,stTime.pos[2],stTime.len[2]);
else timeval="";
Subject: RE: regexp for swear filter
don't waste your time with regular expressions; in this case you already
know what you want to replace and regular expressions are for times when you
don't know exactly what your searching for. Use replaceList(), like this:
badList = "a
nc.
[EMAIL PROTECTED]
-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 9:40 AM
To: CF-Talk
Subject: RE: regexp for swear filter
don't waste your time with regular expressions; in this case you already
know what you wa
TECTED]]
> Sent: 23 August 2001 17:40
> To: CF-Talk
> Subject: RE: regexp for swear filter
>
>
> don't waste your time with regular expressions; in this case
> you already
> know what you want to replace and regular expressions are for
> times when you
> don
don't waste your time with regular expressions; in this case you already
know what you want to replace and regular expressions are for times when you
don't know exactly what your searching for. Use replaceList(), like this:
badList = "apple,banana,car";
goodList = "*,**,***";
text = "th
>I want to be able to do this with a single regexp, rather than list looping
>over the text and replacing the index of the current loop iteration with
its
>repeatstring('*', len(index)) counterpart - which is slow if I have to do
>this for many text blocks on the same page..
[...]
>would the follo
rereplace(tempString,"[^[:alnum:]]","","ALL")
Marlon
-Original Message-
From: Bruce, Rodney [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:13 PM
To: CF-Talk
Subject: OT: Regexp
I need help with a regexp.
I am trying to remove all special chars from file names.
I can remove
: Friday, August 17, 2001 2:43 PM
To: CF-Talk
Subject: RE: Regexp
I must be missing something: here is what I have, trying to use a UDF.
The testing file name is ^@#$% $rt4o.txt
When I run it through this code newfile is D:\documents\^@#$%$rt4o.txt
I left the space separate for testing, the space
DUH
No typing skill shows up again.
My second Replace is misspelled below. corrected it and now exp works.
Thanks for all the suggestions and help.
Rodney
-Original Message-
From: Bruce, Rodney
Sent: Friday, August 17, 2001 2:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE:
}
#newfile#
thanks
rodney
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 2:23 PM
To: CF-Talk
Subject: RE: Regexp
Since CF treats # as a variable marker, you have to escape it. Just use ##
to mean one #.
Also, instead of
What about something like this:
##\*\?\$\^\]">
Glenn Olsen
Doceus
-Original Message-
From: Bruce, Rodney [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 5:13 PM
To: CF-Talk
Subject: OT: Regexp
I need help with a regexp.
I am trying
> but the # errors out.
Have you tried escaping it?
tempstring = REREplace(tempstring, "##", "", "all")
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetpro
1 - 100 of 116 matches
Mail list logo