using regex, how could I turn this:
font face=Times New Roman, Serif size=2 style=whatever color=
#FF
into this:
font size=2 style=whatever color=#FF
i.e. remove just the face= attribute, but leave everything else the same?
--
These lists are syncronised with the CFDeveloper forum at
--
smartersimplersocial
personal techie blog : http://instantbadger.blogspot.com
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 12 August 2004 11:54
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx strip attribute
using regex, how could I
2004 11:54
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx strip attribute
using regex, how could I turn this:
font face=Times New Roman, Serif size=2 style=whatever color=
#FF
into this:
font size=2 style=whatever color=#FF
i.e. remove just the face= attribute, but leave everything else
using regex, how could I turn this:
font face=Times New Roman, Serif size=2 style=whatever color=
#FF
into this:
font size=2 style=whatever color=#FF
REReplace(fontTag,'[[:space:]]+face=[^]+','')
i.e. remove just the face= attribute, but leave everything else the same?
Why not just remove
string like [Yrs:4] [UK NARIC:British Bachelor degree std ]
I want to get British Bachelor degree std
I have...
REFind(\[UK[[:space:]]+NARIC\:([^\]]+)[[:space:]]*],qExisting.notes,1,true)
which doesn't match correctly
Now, I don't see anything wrong with that, so while testing, I changed the
Oh, CF5 on Win2K btw
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
How about...
\[UK NARIC:(.*?)\]
... just guessing mind, I love these RegEx questions :OD
Ade
-Original Message-
From: Mark Woods [mailto:[EMAIL PROTECTED]
Sent: 09 August 2004 12:38
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx madness, do I need glasses?
string like [Yrs
How about...
\[UK NARIC:(.*?)\]
Doh, all these years and I didn't realise that CF5 supported non-greedy
matches.
Still don't see what's wrong with ([^\]]+), but (.*?) is far more elegant
imho, so I'll go with that.
Ta v. much
Mark
--
These lists are syncronised with the CFDeveloper
Still don't see what's wrong with ([^\]]+), but (.*?) is far more elegant
imho, so I'll go with that.
correction, I'll be going with (.+?)
ok, I've got a date with the coffee machine
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive:
some more behaviour that's confusing me...
regex \[UK[[:space:]]+NARIC\:[[:space:]]*([[:print:]]+?)[[:space:]]*]
string [Yrs:] [UK NARIC:]
CF thinks it has found a match for the sub-expression ([[:print:]]+?), but
it returns the length of the matched sub-expression as 0. How has it found
a
Mark Woods wrote:
some more behaviour that's confusing me...
regex \[UK[[:space:]]+NARIC\:[[:space:]]*([[:print:]]+?)[[:space:]]*]
string [Yrs:] [UK NARIC:]
CF thinks it has found a match for the sub-expression ([[:print:]]+?),
but it returns the length of the matched sub-expression as 0. How has
Tell us what it needs to do (in english not in regex speak), and maybe we
can help a bit more than just helping when you get stuck.
well, I started the thread with...
snip
string like [Yrs:4] [UK NARIC:British Bachelor degree std ]
I want to get British Bachelor degree std
/snip
This isn't
Has anyone got a wee bit of regex that'll allow me lower case a sentence
and then upper case the first letter of each word in the sentence please?
Regards
Stephen
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive:
: [ cf-dev ] Regex to capitalise
first letter of every word in
a sentence.
27/05/2004
]
Subject: [ cf-dev ] Regex to capitalise first letter of every word in a
sentence.
Has anyone got a wee bit of regex that'll allow me lower case a sentence
and then upper case the first letter of each word in the sentence please?
Regards
Stephen
--
These lists are syncronised
Adrian Lynch wrote:
http://www.cflib.org/udf.cfm?ID=889
I have one that's faster somewhere but cflib didn't put it up for some
reason, see what you think of that one though, cfscript based.
Cheers guys. I was kinda trying to be a smart alex and avoid the
whole looping the space delimited
Stephen,
I'm not sure it's possible! The only way I could think of doing it, is
by providing 26 regular expressions... ie:
rereplace(rereplace(string, a, A, all), b, B, all) etc...
I don't think this will be as effective as putting the thing into an
array and then belting it out like this:
]
Sent: 27 May 2004 14:40
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex to capitalise first letter of every word in a
sentence.
Stephen,
I'm not sure it's possible! The only way I could think of doing it, is by
providing 26 regular expressions... ie:
rereplace(rereplace(string, a, A, all
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex to capitalise first letter of every word in a
sentence.
Stephen,
I'm not sure it's possible! The only way I could think of doing it, is by
providing 26 regular expressions... ie:
rereplace(rereplace(string, a, A, all), b, B, all) etc...
I
Hi all,
I've got a wee expression here to get rid of a handful of html tags --
what do I need to put into it so that tags with attributes are removed?
#REreplaceNoCase(request.s_emailText,(/?(p|h3|a|br)),chr(13),'all')#
Cheers
d
--
** Archive:
#REreplaceNoCase(request.s_emailText,(/?(p|h3|a|br)),chr(13),'all')#
#REreplaceNoCase(request.s_emailText,(/?(p|h3|a|br))[^]*,chr(13),'a
ll')#
Untested, but basically, you want to say Anything that isn't a , all
the way up to the next :
[^]* = 0 or more NOT s
Should grab everything.
Paul
Hi,
A long time ago I ask the list for some help with some regex of which the
result was this:
REReplacenocase(fusebox.layout,'(href=index[.]cfm[^]+)()','\1#request.urltoken#\2',
'all')
The client now wishes to be able to use a full URL and therefore I need to
change the above regex to be
[EMAIL PROTECTED]To: ColdFusion User group [EMAIL
PROTECTED]
cf.co.ukcc:
Subject: [ cf-dev ] Regex
How do I change the above regex to include the full url without
specifying exactly what that url is apart from the index.cfm
which will stay the same.
Here's a regex I've used for checking URLs:
^http[s]{0,}:\/\/[A-Za-z0-9-\.]+[A-Za-z0-9-_\.\/\?\]{0,}
Maybe you can hack that apart a bit...?
Thanks Tim,
I'll play around with it. I have now got it working. Always look for the
easy answer:
This does just what I need:
REReplacenocase(fusebox.layout,'(index[.]cfm[^]+)','\1#request.urltoken#\2',
'all')
It then does not matter if the the url looks like
I have an application where my client wants to prevent users
putting in either an email or a phone number into a textform field.
This is to ensure that contact is made through the site owner..
Does anyone have to hand a regex that can detect an email in a
stringthat they could share.
Does any
@+|[0-9 ]{7,}
Wouldn't that do it: either a @ sign or any combination of 7 numerals or
spaces.
Search for this and inform if found.
Paolo
-Original Message-
From: Gordon Burns [mailto:[EMAIL PROTECTED]
Sent: 13 November 2003 13:46
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regex
Would it not be easier to check that the entered value _is_ something,
as opposed to _is not_ something??
Or doesn't the client really have a set idea of what they want from the
user, just that it shouldn't be email or phone number?
Stephen
Gordon Burns wrote:
I have an application where my
discovered, there's no way other than manual moderation to
catch all variances (eg rDOTwildATe-mangoDOTcom)
-Original Message-
From: Gordon Burns [mailto:[EMAIL PROTECTED]
Sent: 13 November 2003 13:46
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regex
I have an application where my
:
Subject: [ cf-dev ] Regex
13/11/2003 13:46
At 14:08 13/11/2003 Stephen Moretti said
Would it not be easier to check that the entered value _is_
something, as opposed to _is not_ something??
Yes it would but the application does not work like that. The text
area form is text entered by one user to be sent to another user
and at this
:
Subject: Re: [ cf-dev ] Regex
13/11/2003 15:17
At 14:16 13/11/2003 Rich Wild said
if someone really wants to put something in, there's not a lot you can do
about it.
If I really wanted to put a telephone number in, and noticed you regex'ing
them out, I'd just do this:
0 two 0 four 3 six 7 four 7.
that'll pass a telephone number regex.
At 14:26 13/11/2003 [EMAIL PROTECTED] said
this would be too easy to get around, just like you can get around printing
your email address on a page in a way that spambots can harvest it. I'd be
really annoyed too if some form rejected my submission because it thought
I'd put in an email
Lo all,
Having some probs with a regexp wondered if anyone can help :¬)
Heres the test ..
CENTErbYay! You found it !/b/CENTEr
cENTERIgnore me I'm the middle ground !/cENTER
CENTERYay! You found the last One !/CENTER
From this little example I want to return the top center tag and
]
rv.org.uk cc:
Subject: [ cf-dev ] RegEx Fun Fun
Fun
22/10/2003 10:37
.* = Anything between the first center tag
? = the fist occurance
Got it from a perl book .. works for me hehe !
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 10:49
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] RegEx Fun Fun Fun
what
Oops typo fist = first
-Original Message-
From: Stephen Pope
Sent: 22 October 2003 10:51
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] RegEx Fun Fun Fun
.* = Anything between the first center tag
? = the fist occurance
Got it from a perl book .. works for me hehe !
-Original
. Just use the
resulting list to find the first and last.
Paolo
-Original Message-
From: Stephen Pope [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 10:37
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx Fun Fun Fun
Lo all,
Having some probs with a regexp wondered
2003 10:54
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] RegEx Fun Fun Fun
There might be a more elegant way, but I have this function:
==
function ReFindList(Document,SearchString) {
var ComponentList='';
var thisPosition=1
I think you'll be better with center[^]*/center unless you have tags
within the center tag.
Paolo
-Original Message-
From: Stephen Pope [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 10:58
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] RegEx Fun Fun Fun
Ooh thanks
: 22 October 2003 11:06
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] RegEx Fun Fun Fun
I think you'll be better with center[^]*/center unless you have tags
within the center tag.
Paolo
-Original Message-
From: Stephen Pope [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 10:58
');
}
}
return ComponentList;
}
==
Paolo
-Original Message-
From: Stephen Pope [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 11:11
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] RegEx
Is that enough self-satisfaction to power a small windmill
Stephen? Could be an alternative form of energy in the future
all thanks to regex :)
Kevin, I think Paul J on this list has a website with
explications and stuff...
Been on holiday for the last few days (and am INCREDIBLY tired)
rereplacenocase(mystring, ([a|p]), \1 class=whatever , ALL) should do
it, haven't tested it though.
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 19 October 2003 11:43
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regex
Hi,
I want a regex that replaces p
: Monday, October 20, 2003 8:52 AM
Subject: RE: [ cf-dev ] Regex
rereplacenocase(mystring, ([a|p]), \1 class=whatever , ALL) should
do
it, haven't tested it though.
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 19 October 2003 11:43
To: [EMAIL PROTECTED
nope. you'll need 2 regexs for that.
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:36
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex
Works a treat Rich, thanks. Just out of interest can you do
stuff like '[\1 class=something
]
Subject: Re: [ cf-dev ] Regex
Works a treat Rich, thanks. Just out of interest can you do stuff like
'[\1
class=something | \2 class=somethingelse]' in the second attribute?
#rereplacenocase(body, '([a|p])', '\1 class=mainBody', ALL)#
- Original Message -
From: Rich Wild [EMAIL PROTECTED
]
To: [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:39 AM
Subject: RE: [ cf-dev ] Regex
\1 refers to a back-reference ( the stuff between the brackets in the
regex) .. if you wanted 2 you'd need 2 reg-ex's !
I think .. it is Monday morning !
Regards
Stephen
-Original Message-
From: Damian
2003 09:48
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex
Got it now, not only is it Monday morning, I'm also at the lower end of the
regex learning curve- a painful combination if there ever was one ;0)
It's beginning to make sense though, I've passed the brain scramble stage...
- Original
[mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:51
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Regex
Ive avoided regex for so long but so much stuff here is in
Perl that I couldn't avoid it any longer ! Its quite a
learning curve hehe but with a bizarre sense of satisfaction
at the end
are there any good tutorials around? I've hardly used it at all, but it
seems similar to sed which I've used in a previous lifetime.
-Original Message-
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:56
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Regex
yea
is supposed to be good (but I haven't
looked at it)
Stephen
-Original Message-
From: Kevin Faulkner [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:56
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Regex
are there any good tutorials around? I've hardly used it at all, but it
seems similar
in a previous lifetime.
-Original Message-
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:56
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Regex
yea - it is difficult to get your head around, but once you start using them
and feeling the awesome power of the Death Star, erm
: Monday, October 20, 2003 9:55 AM
Subject: RE: [ cf-dev ] Regex
yea - it is difficult to get your head around, but once you start using them
and feeling the awesome power of the Death Star, erm... regex then you'll
find them immensely rewarding - especially when you can lose 9 or 10 lines
]
To: [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:51 AM
Subject: RE: [ cf-dev ] Regex
Ive avoided regex for so long but so much stuff here is in Perl that I
couldn't avoid it any longer ! Its quite a learning curve hehe but with a
bizarre sense of satisfaction at the end ! :¬)
Stephen
this bit: [a|p|li] only matches single characters, you its finding the L and
using that in the replace.
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 10:02
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex
Ok then, one final thang
Is there a way around that -- just tried a couple of things to no avail!
- Original Message -
From: Rich Wild [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 10:07 AM
Subject: RE: [ cf-dev ] Regex
this bit: [a|p|li] only matches single characters, you its finding
]
Subject: Re: [ cf-dev ] Regex
Is there a way around that -- just tried a couple of things to no avail!
- Original Message -
From: Rich Wild [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 10:07 AM
Subject: RE: [ cf-dev ] Regex
this bit: [a|p|li] only matches
Hi,
I want a regex that replaces p with p class=whatever and a with a
class=whatever -- is it possible to do this in one or do I have to run two
expressions?
d
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
October 2003 11:43
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regex
Hi,
I want a regex that replaces p with p class=whatever and
a with a class=whatever -- is it possible to do this in
one or do I have to run two expressions?
d
--
** Archive: http://www.mail-archive.com/dev
: [ cf-dev ] Regex
As you don't want to do anything fancy you might just as well use use
replace()... Or even replaceNoCase()
Check the documentation of CF for more info... I'm at home and shouldn't
ever post on a Sunday:(
-Original Message-
From: Damian Watson [mailto:[EMAIL
Perhaps he can't go to church, it's in his contract ;-)
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 19 October 2003 12:27
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex
Yeah... but I want to know how to replace two different
strings with two
Trying to do an extended regex Find in CF Studio 4.5.2:
tr
td[[:Print:]]{1,}/td
td[[:Print:]]{1,}/td
td[[:Print:]]{1,}/td
td[[:Print:]]{1,}/td
td[[:Print:]]{1,}/td
td[[:Print:]]{1,}/td
td[[:Print:]]{1,}/td
/tr
Why does it not find this:
tr
td£1.00/td
To: [EMAIL PROTECTED]
cc:
15/10/2003 13:32 Subject: [ cf-dev
well done on figuring that one out! had me stumped anyway :)
out of curiosity, what does the {1,} bit in the regex mean?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 3:05 PM
Subject: Re: [ cf-dev ] regex problem
worked it out
To: [EMAIL PROTECTED]
[EMAIL PROTECTED]cc:
.plus.com Subject: Re: [ cf-dev ] regex problem
ah cool, cheers :)
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 3:20 PM
Subject: Re: [ cf-dev ] regex problem
match 1 or more times. So there has to be at least 1 printable character
in between the td/td, and it stops the match
Hi,
I have the following regex:
REReplacenocase(fusebox.layout,
'(href=index\.cfm[^]+)()','\1#request.urltoken#\2', 'all')
I am trying to append the #request.urltoken# variable onto the end of any
url containing index.cfm.
Most of the url's look like the following:
\. Is not what you want. Try [.] instead
REReplacenocase(fusebox.layout,
'(href=index[.]cfm[^]+)()','\1#request.urltoken#\2', 'all')
-Original Message-
From: Dave Phipps [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 16:06
To: ColdFusion User group
Subject: [ cf-dev ] Regex
User group [EMAIL
PROTECTED]
cf.co.ukcc:
Subject: [ cf-dev ] Regex problem
:
\. Is not what you want. Try [.] instead
REReplacenocase(fusebox.layout,
'(href=index[.]cfm[^]+)()','\1#request.urltoken#\2', 'all')
-Original Message-
From: Dave Phipps [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 16:06
To: ColdFusion User group
Subject: [ cf-dev ] Regex problem
[EMAIL PROTECTED]To: [EMAIL PROTECTED]
cf.co.ukcc:
Subject: RE: [ cf-dev ] Regex problem
I just cut and pasted these values into a page and it works fine (CFMX 6.1).
Paul
-Original Message-
From: Dave Phipps [mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 16:30
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Regex problem
I have tried that on a test url
[mailto:[EMAIL PROTECTED]
Sent: 11 September 2003 16:30
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Regex problem
I have tried that on a test url and it seems to work
perfectly however it
fails to do anything with the following:
href=index.cfm?fuseaction=home.contentamp;cmid=60
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] RegEx I assume
One final question on this-- I need to extend the
functionality to include
text with AA11 (two alphas and two numerals). What I've done is:
cfsavecontent
variable=Text#REReplaceNoCase(Includes,([a-z]{1,1}[0-9]{2,
2}), a
href
ah just the ticket, ta Rich. I'm starting to understand these things ;0)
- Original Message -
From: Rich Wild [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 1:41 PM
Subject: RE: [ cf-dev ] RegEx I assume
change the {1,1) bit to read {1,2} so that it matches one
, August 19, 2003 1:41 PM
Subject: RE: [ cf-dev ] RegEx I assume
change the {1,1) bit to read {1,2} so that it matches one
instance or
2 of the [a-z] search.
so it would be: ([a-z]{1,2}[0-9]{2,2})
and you'd only need to run that once - ie not have text2.
-Original Message
Hi,
Say I have a long string of text inside of which I have character
combinations of A12 (one letter, two numerals). I want to turn any
alpha-numeric combos of this nature into a link so for instance into: a
href=whatever.htm?combo=A12A12/a.
How'd I do that?
Thanks
d
--
** Archive:
]To: [EMAIL PROTECTED]
ign.co.ukcc:
Subject: [ cf-dev ] RegEx I
assume
I'd replace this:
[A-Za-z]{1,1}[0-9]{2,2}
With this:
[A-Za-z][0-9]{2}
But that's just me... ;)
Tim.
---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our
CFDJList - List Administrator
http://www.how2cf.com/
-Original Message-
From: Tim Blair [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 15:06
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] RegEx I assume
I'd replace this:
[A-Za-z]{1,1}[0-9]{2,2}
With this:
[A-Za-z][0-9]{2}
But that's
Watson [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 14:53
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx I assume
Hi,
Say I have a long string of text inside of which I have character
combinations of A12 (one letter, two numerals). I want to turn any
alpha-numeric combos of this nature
OK, guys, I did clearly miss the point.
Back to the drawing board I guess.
Duncan
-Original Message-
From: Duncan Fenton [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 15:22
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] RegEx I assume
Damien, is this any good? Or have I missed the point
cfoutput
#REReplaceNoCase(text,([a-z]{1,1}[0-9]{2,2}), a
href='whatever.htm?combo=\1'\1/a, ALL)#
/cfoutput
cheers
d
- Original Message -
From: Duncan Fenton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 18, 2003 3:26 PM
Subject: RE: [ cf-dev ] RegEx I assume
OK, guys
Put the regex in quotes ([a-z])
Coldfusion thinks it's a variable and throws an invalid variable name
error I assume.
Paul
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 15:42
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] RegEx I assume
Disco... very nice, thank you all ;0)
- Original Message -
From: Paul Johnston [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 18, 2003 3:46 PM
Subject: RE: [ cf-dev ] RegEx I assume
Put the regex in quotes ([a-z])
Coldfusion thinks it's a variable and throws
: [ cf-dev ] RegEx I assume
No worries Duncan ;)
Tim, Simon, Duncan-- I get an error:
Missing argument name.
Here's the code:
cfsavecontent variable=textpPrivate sources of funding
for SEN pupils (See I13). 6th form funding for SEN pupils
(See I02). Funds delegated
, 2003 3:46 PM
Subject: RE: [ cf-dev ] RegEx I assume
Put the regex in quotes ([a-z])
Coldfusion thinks it's a variable and throws an invalid variable name
error I assume.
Paul
-Original Message-
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 18 August 2003 15:42
This is a revisit and a symptom of my weak understanding of RegExs. Does
this look OK to you?
It's designed to see if a string is in the format -mm-dd, allowing
years from 1900-2099, months from 01 to 12 and days from 01 to 31:
cc:
Subject: [ cf-dev ] RegEx date
format
28/07/2003 11:41
no, that just checks for the characters 1,9,0,- and 2.
anything within square brackets matches individual chars
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 28 July 2003 12:00
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] RegEx date format
Hi All,
I hope one of you regex gurus can give me a pointer here, as this must be pretty
straightforward.
I'm reading in a table from another file but I want to exclude certain cells. The
cells are identified by their class, so I want to remove
td class=natthe text including letters
cfset amendedtop10table = rereplacenocase(top10table, td
class=nat[^]*/td, , ALL)
will remove the specific cells and their contents.
-Original Message-
From: Paddy McKay [mailto:[EMAIL PROTECTED]
Sent: 30 June 2003 12:24
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Regex Help
Hi
not a
great teacher.
Rich
-Original Message-
From: Paddy McKay [mailto:[EMAIL PROTECTED]
Sent: 30 June 2003 12:35
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex Help
Thanks Rich that does the trick.
What does [^] mean in this context?
I've not had much cause to deal with Regex
other string
hmm, excuse me if I haven't worded that very well or confused
you. I'm not a great teacher.
Rich
-Original Message-
From: Paddy McKay [mailto:[EMAIL PROTECTED]
Sent: 30 June 2003 12:35
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex Help
Thanks
12:40 PM
Subject: RE: [ cf-dev ] Regex Help
the bit [^]*
means take a single character (the [] bit), and ignore it (the ^ bit).
Then
using that rule, match everything that obeys this rule (so thats
everything
apart from '')
so in effect you're saying I want to match everything apart from
A search and replace went awry and resulted in lots of these
cfoutput query=GetSomeQuery
Doing a Extended Replace in Studio 5 checking the regular expressions
box with this
Find: cfoutput query=[^]
Replace with: cfoutput query=
results in
cfoutput query=etSomeQuery
where the quotation
cfoutput query=([^])
replace with
cfoutput query=\1
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]
Sent: 20 June 2003 11:38
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx replace in ColdFusion Studio 5
A search and replace went awry and resulted in lots
:
Subject: [ cf-dev ] RegEx
replace in ColdFusion Studio 5
20/06/2003 11:37
Please respond
1 - 100 of 129 matches
Mail list logo