Skip to content

Regex help #158

@scripting

Description

@scripting

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions