psobot / keynote-parser

A packer/unpacker for Apple Keynote presentation files.
158 stars 17 forks source link

How to write the correct regexp? #52

Open LittleTerry opened 1 year ago

LittleTerry commented 1 year ago

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!