Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
unintuitive language feature (exclamation functions)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Michael Morin, post: 4616395"] This works. Doing it this way returns the actual string, not some string extended by undocumented modules that's actually an array in disguise or something like that. require 'cgi' cgi = CGI.new('html4') a = cgi.params['a'][0] a.sub!(/hi/, 'bye') puts a -- Michael Morin Guide to Ruby [URL]http://ruby.about.com/[/URL] Become an About.com Guide: beaguide.about.com About.com is part of the New York Times Company [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
unintuitive language feature (exclamation functions)
Top