Just in case you're interested, you can use the match function with a regular expression to do the same thing.