U
Unmesh Gundecha
Hi,
I want to extract "New User Registration" and "New User" from a string
as follows. I am using RegExp for this.
r1 = Regexp.new('\(\"([^\.]*)\"\)')
matches = r1.match('Page("New User Registration").Frame("New User")')
puts !matches.nil?
puts matches[0]
puts matches[1]
puts matches[2]
However above code returns only "New User Registration". Is there any
way to find the next match. Is something missing in this code?
Please advice.
Thanks in advance,
Unmesh
I want to extract "New User Registration" and "New User" from a string
as follows. I am using RegExp for this.
r1 = Regexp.new('\(\"([^\.]*)\"\)')
matches = r1.match('Page("New User Registration").Frame("New User")')
puts !matches.nil?
puts matches[0]
puts matches[1]
puts matches[2]
However above code returns only "New User Registration". Is there any
way to find the next match. Is something missing in this code?
Please advice.
Thanks in advance,
Unmesh