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:
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)