For your problem with "c/c(+1)" there is are Look-Around Assertions, check perlre. For example, (?=pattern) matches the pattern but does not include it in the match.
Also, in your code snippet, can you please include the missing $steady_states{$var}, so that the code becomes executable.
In reply to Re: Help with regex - find captured pattern twice
by hdb
in thread Help with regex - find captured pattern twice
by pachydermic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |