I've been more aggressive lately about creating helper scripts and aliases for common tasks, and I liked this find helper enough to want to share it. I find that I often do filename searches like this:
find -iname "*some_word*"
That's not so bad to type, but why not make it even easier for my, and maybe your [...]
by Scott Carpenter on 21 January 2010 at 9:41 pm
permalink |
comments (2) | filed under tech
tagged: bash, regex
I was looking for a way to backup my tweets (I find that I'm reluctantly giving over to calling Twitter posts by that name, but I don't feel good about it) and found this "recipe" at ActiveState's web site:
Recipe 576594: Backup/download your tweets or anyone's tweets.
It's a nice simple Python script that saves messages to [...]
by Scott Carpenter on 18 March 2009 at 8:51 pm
permalink |
comments (4) | filed under uncategorized
tagged: python, regex, twitter
This post is a rather lengthy analysis of a short regular expression:
(.+?)(\.[^.]*$|$)
I'm continuing to enjoy and learn a lot from Jeffrey Friedl's Mastering Regular Expressions. One of the things that works well for me is the way he walks through examples and iteratively builds a more robust pattern for a particular task. It helps to [...]
by Scott Carpenter on 1 April 2008 at 8:24 pm
permalink |
comments (7) | filed under uncategorized
tagged: regex
More fun with Python and regular expressions. Following up on a previous post, I wanted to share a little test regex function I wrote in Python to help me as I work through the regular expression book.
I'm mostly working at the interactive prompt and had been running commands from Python re (the regex module) [...]
by Scott Carpenter on 29 March 2008 at 10:34 am
permalink |
comments (2) | filed under tech
tagged: code, python, regex
I don't want to go all 7 Habits of Highly Effective People on you, but I'll say this: I think it's good to have goals and to work towards your goals.
I like this quote, which I've seen attributed to Zig Ziglar:
"Most people fail to reach their goals not because their plans are too simple or [...]
by Scott Carpenter on 23 March 2008 at 10:33 pm
permalink |
comments (3) | filed under uncategorized
tagged: books, python, regex