I would like to get a regexp that will extract out the following. I have a regexp to validate it (I pieced it together, so it may not be the the best or most efficient).
some.text_here:[12,34],[56,78]
The portion before the colon can include a period or underline. The bracketed numbers after the colon are coordinates [x1,y1],[x2,y2]... I only need the numbers from here.
And here is the regexp validator I was using (for javascript):
^[\w\d\-\_\.]*:(\[\d+,\d+],\[\d+,\d+])
I'm fairly new to regexp but I can't figure out how to extract the values so I can get
name = "some.text_here"
x1 = 12
y1 = 34
x2 = 56
y2 = 78
Thanks for any help!