aspose file tools*
The moose likes Ruby and the fly likes split() ,collect() and slice()  in ruby Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "split() ,collect() and slice()  in ruby" Watch "split() ,collect() and slice()  in ruby" New topic
Author

split() ,collect() and slice() in ruby

Dhayalan Karunakaran
Greenhorn

Joined: Jun 11, 2008
Posts: 9
i am doing search module in my project. it needs to split sequence of strings to perform the task effectively. it's not properly working while we enter the search keyword as blank and some of like ! @ # $ % ^ & * ( ) _ + | } { : " < > ? / . , ' ; ] [ .how do i perform the search effectively.

Thank you


I.J.K.Dhayalan MCA,<br />Software Engineer.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Can you give an example input/output? Maybe show some code you've already tried?

So far all I can tell is there needs to be something that splits strings based on some criteria and that certain characters are causing the output to be wrong but with no explanation or example of what a correct or incorrect output would look like.

For example can you provide us something like:
I need to take the string "Hi,there,dude!" and split it into a list of strings using the comma as a delimiter so I get three separate strings of "Hi" "there" and "dude!".


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: split() ,collect() and slice() in ruby
 
Similar Threads
Suggestion
Search using XML
How to add two floating point numbers ?
The split() method contains an indexof search...... cannot find explanation of this.
Wild card Search in hibernate