Hi
I am reading a file and want to extract. all quotations given in "" or
''
I was using regular expression.

/\w+('|")(\w+)('|")/

for example.
Mr. Ayush said "we need to change ourselves to change the world"

result would be
we need to change ourselves to change the world.

but there is loop hole that this pattern would extract "'.
can anyone help? so that i can extract only "" or ''

-- 
Posted via http://www.ruby-forum.com/.