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 throughall the peramiters and hosts also. put this into a template and lookat 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=[loopstart=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getcharsstart=1&end=1&from=end][newaddress][/getchars][text]newaddress=[getcharsstart=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=[listwordswords=[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=[loopstart=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getcharsstart=1&end=1&from=end][back][/getchars][text]back=[getcharsstart=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:
Well, definately not as pretty as John's grep :-).. but this will wade throughall the peramiters and hosts also. put this into a template and lookat 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=[loopstart=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getcharsstart=1&end=1&from=end][newaddress][/getchars][text]newaddress=[getcharsstart=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=[listwordswords=[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=[loopstart=1&end=[numchars]&advance=1][text]lpcount=[math][lpcount]+1[/math][/text][getcharsstart=1&end=1&from=end][back][/getchars][text]back=[getcharsstart=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)