Displaying 1 result from an estimated 1 matches for "p537".
Did you mean:
537
2006 May 05
2
can you do global match regular expressions?
I cant figure out how to do global regular expressions in ruby. Im not
even sure if its possible. In the "Programming Ruby" book there is no
mention of it.
Can you do this?
text = "aaa1 bbb2 ccccc3 dddddd4 eee5"
re = /\w+\d{1}/
matches = re.match text
m[0] = "aaa1"
m[1] = nil
m[2] = nil
and so on....
Is there any way to get an array of all the matches??