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:

Wrapping text (1998) b12 cannot limit records returned and more. (1997) buy 2 items get this free (2003) WebCat & Webstar V (2001) I'm new be kind (1997) Virtual Postcards (1998) [FEATURE REQUEST] (2004) Setting up shop (1997) Numbers from Sentence (2003) BBEdit grep (2003) Problems w/ heavy use of cart header fields? (1998) HELP WITH DATES (1997) [shownext max=?] armed (1997) OH MY GOD! (1998) Tax Rate (2000) Emailer setup (1997) security (1997) [OT] Yahoo! Front Page (2002) Webstar 1.3.1 PPC (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997)