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:

[WebDNA] NoSQL: sharing some ideas (2013) covertchars db to keep CR's, but not new ones (2002) sending graphics in HTML email via [sendmail]? (2000) Setting up WebCatalog with Retail Pro data (1996) Apache2 connector (2003) No shipping systems available? (1998) Webmerch tags? (1998) Preventng cacheing (2000) [SearchString] problem with [search] context (1997) WC2f3 (1997) Bug Report, maybe (1997) PCS Frames (1997) RE: Nt's Latest? (1997) Need help with emailer- 2 issues (1997) Lookup Notfound (1998) (1997) WebCat2 - [format thousands] (1997) OFF-TOPIC: Beach front land in Philippines (2004) [WebDNA] Timestamp Converter (2015) Signal Raised Error (Part II) (1997)