# Start of file, showing the name of the application # Size, and all relevent parts of the title ...
Ruby Address Book
by https://www.google.com/accounts/o8/id?id=AItOawkiJON4MFJ9bopD8IvwQ1pbpH3ag7yrtnI,
December 28, 2011 07:36,
5 refactorings, tagged with ruby, methods, regexp, regular expression
def unbold_pipes (wikibold_string)
wikibold_string.
split('|').
...
Ruby Ugly split/join
This is supposed to be taki...
/^(?:(\d)[ \-\.]?)?(?:\(?(\d{3})\)?[ \-\.])?(\d{3})[ \-\.](\d{4})(?: ?x?(\d+))?$/
# expanded version w/ comments
...
Ruby Phone number regex
by Lex,
October 31, 2008 16:00,
3 refactorings, tagged with regex, regexp, phone number, regular expression
I wrote this regex for pars...
res = []
path_without_calculation.gsub(/\{(.*?)\}/) {|match|
res << match[1.. match.size-2]
...
Ruby Extract text between {} bra...
Can this be written shorten?
def writefile(file, *linedata)
linedata.each do |line|
file << line.join(",") + "\n"
...
Ruby Parsing non-delimited text
I have large text-reports f...
This is a fairly simple add...