Hi
I am trying to grab a string within brackets using Reg Ex. The output should be as below.
| Field | Output |
| adfsdfsfaw reg asdfsdfas dsdfsdf (regulation x) | regulation x |
| asdf33 sdfsd cc (regulation yy) | regulation yy |
| asdfsdf erer reg sdfsd | |
| sdfs werwewrwer (regulation ttt) | regulation ttt |
I found the below solution and it works - can someone pls explain why though? How do I read this?
(.*)(?:\()(.*)(?:\))
I would have gone for (reg.*) as a regular expression. but that doesn't work.