I have around 4k PHP files. There are more than 6k preg_* functions used in the code.
I need to find all patterns used in the code and extract them. My aim is to group such patterns and replace them with a named constant.
I want to make a list like this: https://www.exakat.io/reports/codeigniter/datas/inventories_regex.html
I tried to make a regex search, but I'm not getting it right.
regex: https://regexr.com/48s1s