-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
I grok regex, but I have a mental block against working in it. It's weird because I used it all the time when I was a grad student, but after programming on PCs and Macs, I became regex-phobic.
Now I have a problem that should be easily solved by regex.
Let's say I have a URL like this:
http://my.this.how/davewiner/outlinerHowto.opml
I want to generate a file name, just using regex, like this:
/Miami/littleoutliner/publicFiles/users/davewiner/myOutlines/outlinerHowto.opml
I could easily write JavaScript code to do this, but I don't want to when regex is sufficient.
So your assignment is to give me a regex that turns the URL into the corresponding file path.
Thanks! :-)
Metadata
Metadata
Assignees
Labels
No labels