I failed after several tries to make a regex to find if a string contains a placeholder like %1$s or %3$d in a message like:
Hello, %1$s! You have %2$d new messages.
Can somebody give me, any help ?
How can I count how many placeholders are there ?