Your description does not make much sense, so it is possible that I misunderstand.
Remember, a diagram is worth 1000 words so please attach a small sample VI demonstrating the problem or a image of your code.
🙂Anyway, matching patterns does not involve any shift registers to obtain the "after substring".
If you need the original string, just branch it off before it enters the match pattern function.