How does second regex works in the following code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 2
@Bagon thank you :)
16th Jul 2020, 1:50 PM
Abhay
Abhay - avatar