How can I get strings of corresponding placeholder according to format string?
For example:
The format string is My name is %s, and I'm %d years old
, and I have a string My name is Mike, and I'm 18 years old
。How to get Mike
and 18
according to the format string, which correspond to placeholder %s
and %d
separately?