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:
webCatalog and Stocks (1998)
Encrypted items in DB (2001)
Frames and WebCat (1997)
WC2f3 (1997)
[movefile] (1999)
WebDNA equivalent for $REQUEST_URI (2004)
RE: Multiple Stores and WebCatalog Prefs (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Weird Math and SV (1997)
Configuring E-mail (1997)
Authorize net down? (2005)
What changes does $purchase make? (1998)
WebStar 3 crackable !!!! (1998)
&FieldNametype=time unnecessary? (2000)
hideif/showif causes error if wrapped around searches (2003)
Error: Too many nested [xxx] contexts (1997)
Kill the webcat process (2000)
[isfile] ? (1997)
Help! WebCat2 bug (1997)
PixelPipe for Windows? (2003)