Regex Tutorial: http://www.pjnetsolutions.com/regex/
HTH Paul > > 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 the '<' character up until I actually reach one." > > If I had: > > "This is my string & this is my other string" > > and I wanted to remove everything up to and inclusing the > ampersand then I could do: > > rereplace(mystring, "[^&]*&", "", "ALL") > > this would give me: > > " this is my 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 Rich that does the trick. > > > > What does [^<] mean in this context? > > > > I've not had much cause to deal with Regex until now, hence > the newbie > > question. > > > > > > paddy > > ----- Original Message ----- > > From: "Rich Wild" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, June 30, 2003 12:23 PM > > Subject: RE: [ cf-dev ] Regex Help > > > > > > > <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 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=nat>the text including letters numbers and > > spaces</td> > > > > > > > > I'm trying to get this regex to do this without success, and I > > > > need to get this running within the next day or two. Where am I > > > > going wrong? > > > > > > > > <Cfset Amendedtop10table = reReplaceNoCase(top10table, > > > > "(<td){1}(class=nat){1}[.]{0,100}(</td>){1}","", "All")> > > > > > > > > All help appreciated > > > > > > > > paddy > > > > ----------------- > > > > Paddy McKay > > > > Scottish Property Network [EMAIL PROTECTED] > > > > Tel: 0141 561 7300 > > > > Fax: 0141 561 7319 > > > > > > > > > > > > > -- > > > ** Archive: > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] For > > human help, e-mail: [EMAIL PROTECTED] > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
