Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Static sites w/ GS - speed & security. "GetSimpler"
#35
the_amusing_cow Wrote:Two regular expressions should do it, something like
1.     (z)  =    HREF\=".*"       (make 'z' equal to the URL inside the quote marks)
2.     (a,b,c) =  (//.*/)(.*/)*(.*^)       (feed 'z' into this regular expression to chop it into three bits)
where 'a' gives you    //site1.com/
'b' gives you              football/uk/
'c' gives you              man-united/^      (where ^ is the end of string character for regexs in your language)


Ja have been playing with regex this week actually, for other reasons, making plugin browser for GS, pulls all plugins from plugin webpage, want it to give option to install from inside GS and update as required. but that is other story. Anyways.. Will look at , just have to make sure it is urls of the target(local site url). and not replace external stuff. thus will make little more custum, but not a problem. I can also just run into the directories and create each page as is and keep the dir structure and move that over as needed. Will see, that way all is almost a mirror of remote.

tx

johannes
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.
Reply


Messages In This Thread
Static sites w/ GS - speed & security. "GetSimpler" - by dominionit - 2011-07-24, 05:56:29



Users browsing this thread: 1 Guest(s)