Re: Hiding a subsection of text

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46177
interpreted = N
texte = Well, definately not as pretty as John's grep :-).. but this will wade through all the peramiters and hosts also. put this into a template and look at it:---start--[text]address=http://guy.likes.subs.domain.com?frodo=asdfs&sasquatch=dom[/text] Address: [address]

[text]numchars=[countchars][address][/countchars][/text] number of chars:[numchars]

[text]lpcount=0[/text] [text]newaddress=[address][/text][text]backwards=[loop start=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getchars start=1&end=1&from=end][newaddress][/getchars][text]newaddress=[getchars start=1&end=[math][numchars]-[lpcount][/math]][newaddress][/getchars][/text][/loop][/text]Backwards: [backwards]

[showif [address]^?] [text]backwards=[middle startafter=?&endafter=//][backwards][/middle][/text]new backwards domain is: [backwards]

[/showif][text]count=0[/text][text]domain=[listwords words=[backwards]&delimiters=.][text]count=[math][count]+1[/math][/text][hideif [count]>2][word][/hideif][hideif [count]>1].[/hideif][/listwords][/text]

Basic Backwards Domain is: [domain]

[text]numchars=[countchars][domain][/countchars][/text] number of chars:[numchars]

[text]lpcount=0[/text] [text]back=[domain][/text][text]forwards=[loop start=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getchars start=1&end=1&from=end][back][/getchars][text]back=[getchars start=1&end=[math][numchars]-[lpcount][/math]][back][/getchars][/text][/loop][/text]End result is: [forwards]

--end-- WJ Starck wrote:> 'Lo all- > > To continue a discussion from last week- > > I want to *hide* a subsection of text - basically everything to the > left of the top level domain in a url. > > Neither [listwords] or [middle] will work for this as far as I can tell. > > Can you say feature request? > > -- > > Will Starck > NovaDerm Skincare Science > http://www.novaderm.com > wjs@novaderm.com-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Hiding a subsection of text (Donovan 2002)
  2. Re: Hiding a subsection of text (Dale's Stuff 2002)
  3. Re: Hiding a subsection of text (John Peacock 2002)
  4. Re: Hiding a subsection of text (Andrew Simpson 2002)
  5. Re: Hiding a subsection of text (WJ Starck 2002)
  6. Re: Hiding a subsection of text (Andrew Simpson 2002)
  7. Re: Hiding a subsection of text (WJ Starck 2002)
  8. Re: Hiding a subsection of text (Gary Krockover 2002)
  9. Re: Hiding a subsection of text (WJ Starck 2002)
  10. Re: Hiding a subsection of text (Andrew Simpson 2002)
  11. Re: Hiding a subsection of text (John Hill 2002)
  12. Re: Hiding a subsection of text (Andrew Simpson 2002)
  13. Re: Hiding a subsection of text (Brian Boegershausen 2002)
  14. Re: Hiding a subsection of text (WJ Starck 2002)
  15. Hiding a subsection of text (WJ Starck 2002)
Well, definately not as pretty as John's grep :-).. but this will wade through all the peramiters and hosts also. put this into a template and look at it:---start--[text]address=http://guy.likes.subs.domain.com?frodo=asdfs&sasquatch=dom[/text] Address: [address]

[text]numchars=[countchars][address][/countchars][/text] number of chars:[numchars]

[text]lpcount=0[/text] [text]newaddress=[address][/text][text]backwards=[loop start=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getchars start=1&end=1&from=end][newaddress][/getchars][text]newaddress=[getchars start=1&end=[math][numchars]-[lpcount][/math]][newaddress][/getchars][/text][/loop][/text]Backwards: [backwards]

[showif [address]^?] [text]backwards=[middle startafter=?&endafter=//][backwards][/middle][/text]new backwards domain is: [backwards]

[/showif][text]count=0[/text][text]domain=[listwords words=[backwards]&delimiters=.][text]count=[math][count]+1[/math][/text][hideif [count]>2][word][/hideif][hideif [count]>1].[/hideif][/listwords][/text]

Basic Backwards Domain is: [domain]

[text]numchars=[countchars][domain][/countchars][/text] number of chars:[numchars]

[text]lpcount=0[/text] [text]back=[domain][/text][text]forwards=[loop start=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getchars start=1&end=1&from=end][back][/getchars][text]back=[getchars start=1&end=[math][numchars]-[lpcount][/math]][back][/getchars][/text][/loop][/text]End result is: [forwards]

--end-- WJ Starck wrote:> 'Lo all- > > To continue a discussion from last week- > > I want to *hide* a subsection of text - basically everything to the > left of the top level domain in a url. > > Neither [listwords] or [middle] will work for this as far as I can tell. > > Can you say feature request? > > -- > > Will Starck > NovaDerm Skincare Science > http://www.novaderm.com > wjs@novaderm.com-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan

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:

Lost Field (1998) WebDNA Writer Needed (1997) all db's in one folder and protected (1998) MOOOOOO (2000) SFTP (2004) Plugin or CGI or both (1997) how to use WebCat w. SSL & CyberCash (1998) Protect Tag and Groups (1998) sort without the or a (1998) YACBQ.....(Yet another checkbox question) (2000) Nested vs conditional (1997) [TaxableTotal] - not working with AOL and IE (1997) Need relative path explanation (1997) No Data (1997) The beginning (1997) Banner DNA (1997) ftp ng (1999) Boolean Tests with dereferenced arrays are broken in (2003) New servers and new inline cache (1997) Round up prices (2000)