# 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

This is a fairly simple add...

55502f40dc8b7c769880b10874abc9d0 Talk
def unbold_pipes (wikibold_string)
     wikibold_string.
      split('|').
...

Ruby Ugly split/join

by Muke Tever, July 30, 2009 19:52, 3 refactorings, tagged with rails, split, regexp

This is supposed to be taki...

F4192eeb4b26e96deab8b5c68926105d Talk
/^(?:(\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...

Aca17ffad5faa4b9f2ea9090b56a1c59 Talk
res = []
      path_without_calculation.gsub(/\{(.*?)\}/) {|match|
        res << match[1.. match.size-2]
...

Ruby Extract text between {} bra...

by stephan, October 22, 2008 11:54, 4 refactorings, tagged with short, regexp, gsub

Can this be written shorten?

349779c687ad1de3e116f3a5feaf3f92 Talk
def writefile(file, *linedata)
	linedata.each do |line| 	
		file << line.join(",") + "\n"
...

Ruby Parsing non-delimited text

by thepanu, October 06, 2008 07:48, 1 refactoring, tagged with parsing, csv, non-delimited, regexp

I have large text-reports f...

98edd841bbc19903cd758722d9745f0b Talk