Aviral-Bhardwaj
Esteemed Contributor III

@Tim zhang​ ,

thanks for your code, and here is your answer

image 

I asked this question in Stackoverflow and got this answer

Here is the Stackoverflow link- https://stackoverflow.com/questions/74845760/how-to-parse-a-pattern-and-use-it-to-format-a-string-us...

Please select my this answer as the best answer,it will be really encouraging

Thanks

Aviral Bhardwaj

AviralBhardwaj

View solution in original post