+ 3

How does second regex works in the following code?

So I understand the first expression for capturing values between brackets but how does second one works with ".+" ,what does it mean? var a="matrix(0.44,0,0,0.45,0,0)".match(/\(([^)]+)\)/) var b="matrix(0.44,0,0,0.45,0,0)".match(/\((.+)\)/)

16th Jul 2020, 12:22 PM
Abhay
Abhay - avatar
1 ответ
+ 2
@Bagon thank you :)
16th Jul 2020, 1:50 PM
Abhay
Abhay - avatar