jDataLab

1 minute read

Before reading this post, read the previous part.

7. Grouping and String Replacement

(...) is grouping which allows back referencing by \\n for the nth group in the pattern.

Exercise:

eyJsYW5ndWFnZSI6InIiLCJzYW1wbGUiOiJzdHJpbmdzIDwtIGMoXCJeYWJcIiwgXCJhYlwiLCBcImFiY1wiLCBcImFiZFwiLCBcIiBhYmMgZFwiLCBcImFiZVwiLCBcImFiIDEyMTJcIiwgXCJjZGFiIDEyXCIpXG5wYXR0ZXJuID0gXCIoYWIpIDEyXCJcbnJlcGxhY2VtZW50ID0gXCJcXFxcMSAzNFwiXG5cbnN1YihwYXR0ZXJuLCByZXBsYWNlbWVudCwgc3RyaW5ncylcblxuZ3N1YihwYXR0ZXJuLCByZXBsYWNlbWVudCwgc3RyaW5ncylcblxubGlicmFyeShzdHJpbmdyKVxuc3RyX3JlcGxhY2VfYWxsKHN0cmluZ3MsIHBhdHRlcm4sIHJlcGxhY2VtZW50KSJ9

Continue to Part 3.


comments powered by Disqus