Inside a set of brackets, you have a character class. What a character
class indicates is "one of these" or, with the ^ at the beginning, "not
one of these". Here, your parentheses have no meaning, other than they
are not allowed. You also are only matching one, not many, characters.
So ")
ah, i see. no, i thought you were just parsing a filename. i missed
the fact that you were searching a longer string for any instances of
gifs not named 'blank'.
i got nothing off the top of my head (my regex fu is weak), but i'll
play around. i'm sure one of the ninjas will stop by soon tho wi
Well, the issue here is that the content will probably contain
multiple gifs, and I want to know if any of them are not "blank.gif".
Does that make sense? Or am I just not seeing the light here?
Cheers,
Kris
On Dec 21, 2007 1:36 PM, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> why not just (list
why not just ?
short-circuit evaluation would mean that if the file extension isn't
"gif", the other conditional never fires, so it should still be
relatively efficient.
On Dec 21, 2007 10:25 AM, Kris Jones <[EMAIL PROTECTED]> wrote:
> Not being a big regex wizard, I'm sure I'm missing something
Not being a big regex wizard, I'm sure I'm missing something basic
here. I'm trying to check some content for existence of gif images
that are not named "blank.gif". My if statement looks like:
However, this is not accounting for any gif where the filename prior
to the extension ends in b, l, a,
>
>
>
>
> Also, you do not need to use ReFindNoCase since you are not using a
> regular
> expression, you can simply use FindNoCase the syntax is basically the
same.
>
> HTH
>
> Donnie Bachan
&g
Found #i#
Also, you do not need to use ReFindNoCase since you are not using a regular
expression, you can simply use FindNoCase the syntax is basically the same.
HTH
Donnie
ed to keep the cfloop as it is really, so any changes would best be
done in the refindnocase itself if that's possible. The problem is that
in this example, #i# would find all 3. I only ever want it to return
the first *found* country. I'm already limiting the text-to-be-searched
by 3
be added to 2 seperate lists, and inserted into a DB (so that link1.cfm and
Apples and Pears are both added to the same DB record - I think this is the
best way to do it).
How, though, can I loop through *all* of the cfhttp var - refindnocase? -
and add each valid link and text to their respect
http://www.fusionauthority.com/alert/index.cfm?alertid=5#Tech2
The results are from CF 4.5 but you can see the basics.
At 07:05 PM 1/28/02, you wrote:
>Offhand, I'd think REFind() would be faster than REFindNoCase(), since
>neither the string being tested, nor the RE would have to
Offhand, I'd think REFind() would be faster than REFindNoCase(), since
neither the string being tested, nor the RE would have to transformed to all
caps (or all lowercase) prior to the test.
If I've got an RE that already takes into account case insensitiviy by using
character clas
iginal Message --
from: "Lee Fuller" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 15 Nov 2001 11:27:25 -0800
>Ok.. I've tried just about every way I know of to escape this puppy (the
>"]" character) so that I can
REFindNoCase("\]",Test)
At 11:27 AM 11/15/2001 -0800, you wrote:
>Ok.. I've tried just about every way I know of to escape this puppy (the
>"]" character) so that I can search for it in a string using
>REFindNoCase.
>
>Anyone have experience
Lee Fuller asked:
> Ok.. I've tried just about every way I know of to escape
> this puppy (the "]" character) so that I can search for it
> in a string using REFindNoCase.
In a character class, you have to make the right bracket the first
cha
Ok.. I've tried just about every way I know of to escape this puppy (the
"]" character) so that I can search for it in a string using
REFindNoCase.
Anyone have experience with this one?
TTAIA
Lee
~~
Your ad could be here.
g position for our search. */
Start = 1;
/* Set a pointer to our CFHTTP.FileContent data. */
Page = CFHTTP.FileContent;
/* Build a table for output. */
WriteOutput("HREFText");
/* Loop through our data in search of hyperlinks. */
while(NOT Exit) {
/* Match any occurence of a UR
uot;<","ALL"))
>>
>
>
>
>
>
>
>
>
>
> #url#
>
>
> - Original Message -
> From: "Jon Hall" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday
At 7:07 PM -0400 6/2/01, Jon Hall wrote:
>For anyone else that is interested here is the final code.
>This program will parse out url's out of any file.
>
>Still think there is a better way to do this though...
Yeah, there is... you can do it with 2 ReReplaceNoCase commands:
]+>[^\<]+\<\
om: "Jon Hall" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 6:16 PM
Subject: Re: REFindnocase - Parsing URL's
> Simple, just delete the the first line and change the name of your
variable
> to 'h'.
>
&g
g in #coldfusion on efnet. /nick
flux0
jon
- Original Message -
From: "W Luke" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 5:22 PM
Subject: Re: REFindnocase - Parsing URL's
> Jon,
>
> How might I change
sgroups: cf-talk
Sent: Saturday, June 02, 2001 9:57 PM
Subject: Re: REFindnocase - Parsing URL's
> Wow, now this is too much of a coincidence. I just opened up my email
> program to post a message saying I had just successfully written a program
> that parses url's out of a
;","ALL")#
- Original Message -
From: "W Luke" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 4:38 PM
Subject: REFindnocase
> Hi,
>
> I need to search for any URLs that exist in #tbody# and if so,
Hi,
I need to search for any URLs that exist in #tbody# and if so, dump the
whole URL into a new variable called #user_URL#
I've done a basic REfindnocase to check if there is a URL in the string, but
that only finds the position(s). Hw can I then grab the whole of the URL?
If z re
"Robert Weimer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 3:07 PM
Subject: Stopping REFindNoCase
> I need to find the position of a string matching the following
> convention. I need to retrieve the string value after the equal sign -
I need to find the position of a string matching the following
convention. I need to retrieve the string value after the equal sign -
I've got the following, which "works," but takes way too long.
var_ResponseMessage= REFindNoCase("(ResponseM
25 matches
Mail list logo