keynote-parser icon indicating copy to clipboard operation
keynote-parser copied to clipboard

How to write the correct regexp?

Open LittleTerry opened this issue 2 years ago • 0 comments

Excuse me, I've a picture named "game.png" to be replaced and it's name is game-8397.png in Data folder.

image

I'm new to regexp so I asked Chat-GPT who gave me "game(?:-\d+)?.png" . After running "keynote-parser replace test.key --replacements try.json", nothing happened (I also tried "game(?:-\d+)?").

image

So how should me write the corredct regexp? Thanks in advance!

LittleTerry avatar Jun 12 '23 18:06 LittleTerry