Re: Extract my page name

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66726
interpreted = N
texte = I'm guessing a grep to remove any instance of /www.mydomain.com/ (doing nothing if that is not present) before moving on to the [middle]: [text show=f]PREPAGENAME=[grep search=whatever pattern to remove /www.anycharacters.com/][myURL][/grep] [text]PAGENAME=[Middle StartAfter=/&EndBefore=.][PREPAGENAME][/middle][/text] Sorry, my grep-fu is weak so I can't help you there. There may be a way to use only grep as well - I'm sure that there is, so this has been a pretty unhelpful suggestion but I'm ready for anything besides the "SQL or not to SQL" posts. :) G. At 09:53 AM 4/4/2006, you wrote: >Hi > >Sorry I'm sure this is simple my brain has just stopped functioning >at the moment. > >I have a database with various urls in it that could be stored as '/ mypage.html' or they could be '/www.mydomain.com/mypage.html' > >In either case I need a way to extract the mypage bit that will work >with any variation of that and I can't figure out how to do it. Does >anyone have any suggestions, I have always used... > >[text]PAGENAME=[Middle StartAfter=/&EndBefore=.][myURL][/middle][/text] > >...which used to work fine until the domains part was also >introduced. Unfortunately I have little or no control over the >entered url so I need to figure out a way. > >Any help much appreciated. ------------------------------------------------------------- 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: Extract my page name ( devaulw@onebox.com 2006)
  2. Re: Extract my page name ( Gary Krockover 2006)
  3. Re: Extract my page name ( nitai@computeroil.com 2006)
  4. Re: Extract my page name ( Steve Craig 2006)
  5. Re: Extract my page name ( Gary Krockover 2006)
  6. Re: Extract my page name ( nitai@computeroil.com 2006)
  7. Extract my page name ( Steve Craig 2006)
I'm guessing a grep to remove any instance of /www.mydomain.com/ (doing nothing if that is not present) before moving on to the [middle]: [text show=f]PREPAGENAME=[grep search=whatever pattern to remove /www.anycharacters.com/][myURL][/grep] [text]PAGENAME=[Middle StartAfter=/&EndBefore=.][PREPAGENAME][/middle][/text] Sorry, my grep-fu is weak so I can't help you there. There may be a way to use only grep as well - I'm sure that there is, so this has been a pretty unhelpful suggestion but I'm ready for anything besides the "SQL or not to SQL" posts. :) G. At 09:53 AM 4/4/2006, you wrote: >Hi > >Sorry I'm sure this is simple my brain has just stopped functioning >at the moment. > >I have a database with various urls in it that could be stored as '/ mypage.html' or they could be '/www.mydomain.com/mypage.html' > >In either case I need a way to extract the mypage bit that will work >with any variation of that and I can't figure out how to do it. Does >anyone have any suggestions, I have always used... > >[text]PAGENAME=[Middle StartAfter=/&EndBefore=.][myURL][/middle][/text] > >...which used to work fine until the domains part was also >introduced. Unfortunately I have little or no control over the >entered url so I need to figure out a way. > >Any help much appreciated. ------------------------------------------------------------- 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/ Gary Krockover

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:

Title not showing up in ViewOrder template (1998) WCS Newbie question (1997) Feedback on new features (2000) New WebDNA Solutions ... (1997) Strange intermittent WebDNA problems (2008) Process SSI and WebCatalog.acgi (1998) [numfound] within summ=t ??? (2000) WebCatalog Hosting (1996) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Showif for mulitple variations (1997) Browser Info.txt (1997) Caching [include] files ... (1997) OLD ORDERS (1998) Interfacing WebMerchant to www.fedex.com (1997) [format xs] freeze (1997) Database changes (1998) href name= link from dynamic URL possible? (1998) math/text variable limits per page (2001) Formulas.db + Users.db (1997) [WebDNA] hierarchal folder path tool (2011)