Tag Archives: regex


Greedy means it will go towards the end of line and will NOT stop at first match if there are other matches available. ‘.*’ = Greedy ‘.*?’ = Lazy Lazy has extra character (?) in the regex syntax. Similarly you … Continue reading

Posted in Regular Expressions | Tagged | Leave a comment

Regular Expression in Textmate

Regular Expression Search and replace in Textmate Use $0, $1, $2 and so on for regular expression replacement for regular expressions.   Example: Find and replace with the found strain put inside trim function : $time_in[0] Regex Pattern:¬†$time_in[[0-6]+] Replace:¬†trim($0)   … Continue reading

Posted in Uncategorized | Tagged | Leave a comment