Re: [WebDNA] Grep help - catch all URLs

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105011
interpreted = N
texte = --Apple-Mail-6--124070522 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii You can also use MIDDLE & TRIM Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 09/03/2010, at 10:09 AM, Tom Duke wrote: > Hi all, >=20 > Looking for some grep help. I'm trying to catch all URLs and append = a variable to the end: >=20 >=20 > search =3D http://www.anyurl.com/page.html >=20 > replace =3D http://www.anyurlcom/page.html?i=3D[id] >=20 > I'm assuming that there is always a whitespace character at the end, = i.e. a space, tab or carriage return, But I can't figure out how to get = WebDNA to find that. The \s whitespace bbedit option does not seem to = work. >=20 > Thanks > - Tom --Apple-Mail-6--124070522 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii You can also use MIDDLE & TRIM


Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 09/03/2010, at 10:09 AM, Tom Duke wrote:

Hi all,

Looking for some grep help.   I'm trying to catch all URLs and append a variable to the end:


   search = http://www.anyurl.com/page.html

   replace = http://www.anyurlcom/page.html?i=[id]

I'm assuming that there is always a whitespace character at the end, i.e. a space, tab or carriage return, But I can't figure out how to get WebDNA to find that.   The \s whitespace bbedit option does not seem to work.

Thanks
- Tom

--Apple-Mail-6--124070522-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Grep help - catch all URLs (Tom Duke 2010)
  2. Re: [WebDNA] Grep help - catch all URLs (Stuart Tremain 2010)
  3. [WebDNA] Grep help - catch all URLs (Tom Duke 2010)
--Apple-Mail-6--124070522 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii You can also use MIDDLE & TRIM Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 09/03/2010, at 10:09 AM, Tom Duke wrote: > Hi all, >=20 > Looking for some grep help. I'm trying to catch all URLs and append = a variable to the end: >=20 >=20 > search =3D http://www.anyurl.com/page.html >=20 > replace =3D http://www.anyurlcom/page.html?i=3D[id] >=20 > I'm assuming that there is always a whitespace character at the end, = i.e. a space, tab or carriage return, But I can't figure out how to get = WebDNA to find that. The \s whitespace bbedit option does not seem to = work. >=20 > Thanks > - Tom --Apple-Mail-6--124070522 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii You can also use MIDDLE & TRIM


Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 09/03/2010, at 10:09 AM, Tom Duke wrote:

Hi all,

Looking for some grep help.   I'm trying to catch all URLs and append a variable to the end:


   search = http://www.anyurl.com/page.html

   replace = http://www.anyurlcom/page.html?i=[id]

I'm assuming that there is always a whitespace character at the end, i.e. a space, tab or carriage return, But I can't figure out how to get WebDNA to find that.   The \s whitespace bbedit option does not seem to work.

Thanks
- Tom

--Apple-Mail-6--124070522-- Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Using Plug-In while running 1.6.1 (1997) WebCat2b12 Mac.acgi--[searchstring] bug (1997) WebCat Hosting (1998) Two options to consider (2008) urls (2005) using showpage and showcart commands (1996) WebCat2b15MacPlugin - [protect] (1997) WC2b12: Yes, Formulas.db is for real (1997) [delete] problem (1997) Help name our technology! (1997) Webten + Webcat running smooth (1998) WebCatb15 Mac CGI -- [purchase] (1997) [WebDNA] An unknown error occured // Deadlock avoided (2011) 5.0 Pricing (2003) 2.1b3 --> way slow (1997) James Hawker (1998) Help formatting search results w/ table (1997) Thanks Will and Christer (was: need help with [sendmail] and[showif]s) (1998) Summing fields (1997) WebCat b13 CGI -shownext- (1997)