List Info

Thread: scan syntax question




scan syntax question
user name
2006-08-15 03:03:19
I was going through the syntax on this site: 
http
://www.rubycentral.com/ref/ref_c_string.html

trying to figure out how to parse my tags.  Basically I have
a tags 
field that returns a value a = 'new york' table

I want to parse it so that I grab the new york and the table
but the 
only way I know to do it is with scan such as:
<%a=st.scan(/\w+/)%> 
which returns three values: new, york, and table.

Can somebody help me with the proper syntax for my scan
statement?

Thanks..

-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )