Yes, ( |$) is where $regml(1) is evaluated. The pattern I have shown here does the same thing as yours.