in reply to use shift function in regex
(Ignoring the plethora of problems with your sample code) you could:
s/^@{[shift]}$/\u$1/ge
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |