Tag: expression
Regular Expression Twitter Linker
June 16, 2009
Regular expression to link twitter users… Replace this ‘@(\w+)’ With this ‘<a href=”http://twitter.com/\1″>@\1</a>’
Locate Files With Names Matching A Regexp
May 15, 2009
You can use locate to find files with name that matches a said regexp… locate -i -r ‘\.jpg$’
Sed Regular Expression Range
May 31, 2008
Print the contents of a file from a given regular expression to another sed -n ‘/start/,/end/ p’ file This will…
Command to Print Until Regular Expression
October 1, 2007
Print a file until a regular expression is matched. cat file.txt | perl -pe “exit if(/Thats all/)”
Recent Comments