[ cf-dev ] RegEx strip attribute

2004-08-12 Thread duncan . cumming
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

RE: [ cf-dev ] RegEx strip attribute

2004-08-12 Thread Alistair Davidson
-- 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

RE: [ cf-dev ] RegEx strip attribute

2004-08-12 Thread Adrian Lynch
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

Re: [ cf-dev ] RegEx strip attribute

2004-08-12 Thread Mark Woods
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

[ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Mark Woods
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

Re: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Mark Woods
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

RE: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Adrian Lynch
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

RE: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Mark Woods
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

RE: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Mark Woods
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:

RE: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Mark Woods
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

Re: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Paul Johnston
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

Re: [ cf-dev ] RegEx madness, do I need glasses?

2004-08-09 Thread Mark Woods
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

[ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread Stephen Moretti
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:

Re: [ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread duncan . cumming
: [ cf-dev ] Regex to capitalise first letter of every word in a sentence. 27/05/2004

RE: [ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread Adrian Lynch
] 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

Re: [ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread Stephen Moretti
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

Re: [ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread Paul Johnston
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:

RE: [ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread Robertson-Ravo, Neil (RX)
] 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

Re: [ cf-dev ] Regex to capitalise first letter of every word in a sentence.

2004-05-27 Thread Paul Johnston
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

[ cf-dev ] Regex rules forever

2004-01-23 Thread Damian Watson
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:

RE: [ cf-dev ] Regex rules forever

2004-01-23 Thread Paul Johnston
#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

[ cf-dev ] Regex additional help

2003-11-13 Thread Dave Phipps
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

Re: [ cf-dev ] Regex additional help

2003-11-13 Thread duncan . cumming
[EMAIL PROTECTED]To: ColdFusion User group [EMAIL PROTECTED] cf.co.ukcc: Subject: [ cf-dev ] Regex

RE: [ cf-dev ] Regex additional help

2003-11-13 Thread Tim Blair
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...?

RE: [ cf-dev ] Regex additional help

2003-11-13 Thread Dave Phipps
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

[ cf-dev ] Regex

2003-11-13 Thread Gordon Burns
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

RE: [ cf-dev ] Regex

2003-11-13 Thread Paolo Piponi
@+|[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

Re: [ cf-dev ] Regex

2003-11-13 Thread Stephen Moretti
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

RE: [ cf-dev ] Regex

2003-11-13 Thread Rich Wild
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

Re: [ cf-dev ] Regex

2003-11-13 Thread duncan . cumming
: Subject: [ cf-dev ] Regex 13/11/2003 13:46

Re: [ cf-dev ] Regex

2003-11-13 Thread Gordon Burns
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

Re: [ cf-dev ] Regex

2003-11-13 Thread duncan . cumming
: Subject: Re: [ cf-dev ] Regex 13/11/2003 15:17

RE: [ cf-dev ] Regex

2003-11-13 Thread Gordon Burns
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.

Re: [ cf-dev ] Regex

2003-11-13 Thread Gordon Burns
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

[ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Stephen Pope
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

Re: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread duncan . cumming
] rv.org.uk cc: Subject: [ cf-dev ] RegEx Fun Fun Fun 22/10/2003 10:37

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Stephen Pope
.* = 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

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Stephen Pope
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

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Paolo Piponi
. 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

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Stephen Pope
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

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Paolo Piponi
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

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Stephen Pope
: 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

RE: [ cf-dev ] RegEx Fun Fun Fun

2003-10-22 Thread Paolo Piponi
'); } } 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

RE: [ cf-dev ] Regex

2003-10-21 Thread Paul Johnston
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)

RE: [ cf-dev ] Regex

2003-10-20 Thread Rich Wild
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

Re: [ cf-dev ] Regex

2003-10-20 Thread Damian Watson
: 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

RE: [ cf-dev ] Regex

2003-10-20 Thread Rich Wild
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

RE: [ cf-dev ] Regex

2003-10-20 Thread Stephen Pope
] 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

Re: [ cf-dev ] Regex

2003-10-20 Thread Damian Watson
] 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

RE: [ cf-dev ] Regex

2003-10-20 Thread Stephen Pope
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

RE: [ cf-dev ] Regex

2003-10-20 Thread Rich Wild
[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

RE: [ cf-dev ] Regex

2003-10-20 Thread Kevin Faulkner
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

RE: [ cf-dev ] Regex

2003-10-20 Thread Stephen Pope
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

RE: [ cf-dev ] Regex

2003-10-20 Thread Ellwood
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

Re: [ cf-dev ] Regex

2003-10-20 Thread Damian Watson
: 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

Re: [ cf-dev ] Regex

2003-10-20 Thread Damian Watson
] 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

RE: [ cf-dev ] Regex

2003-10-20 Thread Rich Wild
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

Re: [ cf-dev ] Regex

2003-10-20 Thread Damian Watson
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

RE: [ cf-dev ] Regex

2003-10-20 Thread Adrian Lynch
] 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

[ cf-dev ] Regex

2003-10-19 Thread Damian Watson
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

RE: [ cf-dev ] Regex

2003-10-19 Thread Tom Smith
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

Re: [ cf-dev ] Regex

2003-10-19 Thread Damian Watson
: [ 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

RE: [ cf-dev ] Regex

2003-10-19 Thread Snake Hollywood
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

[ cf-dev ] regex problem

2003-10-15 Thread duncan . cumming
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

Re: [ cf-dev ] regex problem

2003-10-15 Thread duncan . cumming
To: [EMAIL PROTECTED] cc: 15/10/2003 13:32 Subject: [ cf-dev

Re: [ cf-dev ] regex problem

2003-10-15 Thread Stephen Fernandez
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

Re: [ cf-dev ] regex problem

2003-10-15 Thread duncan . cumming
To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: .plus.com Subject: Re: [ cf-dev ] regex problem

Re: [ cf-dev ] regex problem

2003-10-15 Thread Stephen Fernandez
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

[ cf-dev ] Regex problem

2003-09-11 Thread Dave Phipps
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:

RE: [ cf-dev ] Regex problem

2003-09-11 Thread Paul Johnston
\. 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

Re: [ cf-dev ] Regex problem

2003-09-11 Thread duncan . cumming
User group [EMAIL PROTECTED] cf.co.ukcc: Subject: [ cf-dev ] Regex problem

RE: [ cf-dev ] Regex problem

2003-09-11 Thread Dave Phipps
: \. 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

RE: [ cf-dev ] Regex problem

2003-09-11 Thread duncan . cumming
[EMAIL PROTECTED]To: [EMAIL PROTECTED] cf.co.ukcc: Subject: RE: [ cf-dev ] Regex problem

RE: [ cf-dev ] Regex problem

2003-09-11 Thread Paul Johnston
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

RE: [ cf-dev ] Regex problem

2003-09-11 Thread 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 and it seems to work perfectly however it fails to do anything with the following: href=index.cfm?fuseaction=home.contentamp;cmid=60

RE: [ cf-dev ] RegEx I assume

2003-08-19 Thread Rich Wild
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

Re: [ cf-dev ] RegEx I assume

2003-08-19 Thread Damian Watson
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

RE: [ cf-dev ] RegEx I assume

2003-08-19 Thread Paul Johnston
, 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

[ cf-dev ] RegEx I assume

2003-08-18 Thread Damian Watson
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:

Re: [ cf-dev ] RegEx I assume

2003-08-18 Thread duncan . cumming
]To: [EMAIL PROTECTED] ign.co.ukcc: Subject: [ cf-dev ] RegEx I assume

RE: [ cf-dev ] RegEx I assume

2003-08-18 Thread Tim Blair
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

RE: [ cf-dev ] RegEx I assume

2003-08-18 Thread Simon Horwith
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

RE: [ cf-dev ] RegEx I assume

2003-08-18 Thread Duncan Fenton
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

RE: [ cf-dev ] RegEx I assume

2003-08-18 Thread Duncan Fenton
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

Re: [ cf-dev ] RegEx I assume

2003-08-18 Thread Damian Watson
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

RE: [ cf-dev ] RegEx I assume

2003-08-18 Thread Paul Johnston
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

Re: [ cf-dev ] RegEx I assume

2003-08-18 Thread Damian Watson
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

Re: [ cf-dev ] RegEx I assume

2003-08-18 Thread Ian Westbrook
: [ 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

Re: [ cf-dev ] RegEx I assume

2003-08-18 Thread Damian Watson
, 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

[ cf-dev ] RegEx date format

2003-07-28 Thread Aidan Whitehall
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:

Re: [ cf-dev ] RegEx date format

2003-07-28 Thread duncan . cumming
cc: Subject: [ cf-dev ] RegEx date format 28/07/2003 11:41

RE: [ cf-dev ] RegEx date format

2003-07-28 Thread Rich Wild
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

[ cf-dev ] Regex Help

2003-06-30 Thread Paddy McKay
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

RE: [ cf-dev ] Regex Help

2003-06-30 Thread Rich Wild
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

RE: [ cf-dev ] Regex Help

2003-06-30 Thread Rich Wild
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

RE: [ cf-dev ] Regex Help

2003-06-30 Thread Paul Johnston
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

Re: [ cf-dev ] Regex Help

2003-06-30 Thread Paddy McKay
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

[ cf-dev ] RegEx replace in ColdFusion Studio 5

2003-06-20 Thread Aidan Whitehall
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

RE: [ cf-dev ] RegEx replace in ColdFusion Studio 5

2003-06-20 Thread Rich Wild
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

Re: [ cf-dev ] RegEx replace in ColdFusion Studio 5

2003-06-20 Thread duncan . cumming
: Subject: [ cf-dev ] RegEx replace in ColdFusion Studio 5 20/06/2003 11:37 Please respond

  1   2   >