... I cannot provide the exact data due to confidential[ity] agreements ...
No need to provide proprietary data or code. A small, standalone, working example including dummy data such as provided by tobyink would have done the trick. Indeed, the process of writing and verifying such code would probably have given you valuable insight into what was going on: tobyink's code seems to do just what you want even with needless /g modifiers, and this should have rung a bell or two for you.
In reply to Re^3: regex problem: doesn't work on the first search but works on the second
by AnomalousMonk
in thread regex problem: doesn't work on the first search but works on the second
by onlyauto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |