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
Pasting strings into irb
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="Robert Klemme, post: 4461269"] You can use here documents for that: 10:06:42 [source]: irbsI would like to use ruby to do interesting manipulations of strings. Ideally, I'd be able to copy multiple lines of text from a text editor, paste those lines of text into irb (as a string), manipulate that string, copy the result, and then paste it back into the original editor. I know that sounds like a lot of work, but the manipulations I want to do aren't trivial enough to do with the standard find/replace features of most editors. EOS => "I would like to use ruby to do interesting manipulations of strings.\nIdeally, I'd be able to copy multiple lines of text from a text editor,\npas te those lines of text into irb (as a string), manipulate that\nstring, copy the result, and then paste it back into the original\neditor. I know that sounds like a lot of work, but the manipulations I\nwant to do aren't trivial enough to do with the standard find/replace\nfeatures of most editors.\ n"=> "i would like to use ruby to do interesting manipulations of strings.\nideally, i'd be able to copy multiple lines of text from a text editor,\npas te those lines of text into irb (as a string), manipulate that\nstring, copy the result, and then paste it back into the original\neditor. i know that sounds like a lot of work, but the manipulations i\nwant to do aren't trivial enough to do with the standard find/replace\nfeatures of most editors.\ n"11:42:09 [source]: Kind regards robert [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Pasting strings into irb
Top