Re: Middle problem
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61649
interpreted = N
texte = This might work:[grep search=^[.*]/([^.]*)&replace=\1][thisurl][/grep]-----Original Message-----From: Steve Craig
Sent: Mon, 04 Apr 2005 15:54:50 +0100To: "WebDNA Talk" Subject: Middle problemHiThis is probably quite simple just can't think how to do it after a longweekend off.I use this code to extract the pagename of a url[text show=T]PAGENAME=[MiddleStartAfter=/&EndBefore=.][thisURL][/middle][/text]Only problem is when [thisURL] contains more than 1 slash, likehttp://www.mydomain.com/myfolder/mypage.htmlAny thoughts how to get just the last bit.Thanks for any help.======================================= Steve Craig - Asylum Interactive LtdTel +44 1224 642960 Fax +44 1224 642962======================================= http://www.asylumweb.comEmail: steve@asylumweb.com======================================= -------------------------------------------------------------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/-------------------------------------------------------------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:
This might work:[grep search=^[.*]/([^.]*)&replace=\1][thisurl][/grep]-----Original Message-----From: Steve Craig Sent: Mon, 04 Apr 2005 15:54:50 +0100To: "WebDNA Talk" Subject: Middle problemHiThis is probably quite simple just can't think how to do it after a longweekend off.I use this code to extract the pagename of a url[text show=T]PAGENAME=[MiddleStartAfter=/&EndBefore=.][thisurl][/middle][/text]Only problem is when [thisurl] contains more than 1 slash, likehttp://www.mydomain.com/myfolder/mypage.htmlAny thoughts how to get just the last bit.Thanks for any help.======================================= Steve Craig - Asylum Interactive LtdTel +44 1224 642960 Fax +44 1224 642962======================================= http://www.asylumweb.comEmail: steve@asylumweb.com======================================= -------------------------------------------------------------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/-------------------------------------------------------------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/
devaulw@onebox.com
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:
[BULK] [WebDNA] Version 7 Config problem (2011)
[CART] inside a [LOOP] (1997)
File Upload and Platform (2001)
WebCat and Mac OS X Server problem (2001)
Searching for Email Address (2004)
[BoldWords] WebCat.acgib15Mac (1997)
StoreBuilder Q's (2003)
Site Builder & IE Mac (2004)
Sorting error (1997)
[LOOKUP] (1997)
Trailing carriage returns (2002)
WebCatalog [FoundItems] Problem - LONG - (1997)
E-mail loop ! (1997)
[WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char? (2009)
F*** you (1998)
Can't Update records (1997)
sendmail for email (was Netforms) (1998)
PCS Emailer's role ? (1997)
[format xs] freeze (1997)
Unique SKU Numbers (2000)