search for: show_regexp

Displaying 1 result from an estimated 1 matches for "show_regexp".

2006 Mar 09
15
regular expressions slay me
..._auto_complete_for'' methodology which is allowing users to pick by name and I want the associated id column for an easy find. But I can''t get to square one with irb... irb(main):021:0> myvar = "Some_name\r\n123" => "Some_name\r\n123" irb(main):022:0> show_regexp(myvar, /\w+/) NoMethodError: undefined method `show_regexp'' for main:Object from (irb):22 from :0 Please someone... a. tell me what type of command I would need to pick the numbers off the end b. tell me why irb doesn''t do something so obviously in the Pickaxe b...