regex search and replace example scripts

Search and replace is such a common task that it should be a tool that’s in every command line script author’s toolbox.
There are probably endless solutions to the problem.
I’ve put together my standard methods for tackling the problem.
I’ll also show similar Perl versions, mainly for comparisons.

[Read more...]

Markdown.py passes first 3 tests

Just pushed up an update to markdown.py and test_markdown_pytest.py to github

Passing first 3 tests now.

  1. Non-marked lines
  2. em tags
  3. strong tags

Update: I posted this, then felt bad that it was so short, so removed it.
However, a notification already had gone out on twitter and the rss feed.
So I moved it back to published.
I still fill bad that it’s so short.
But 404’s are worse.