How to run in PyCharm with regex parameters?

  configuration, pycharm, python, regex

How can I use Run / Debug configuration from PyCharm with parameter using regular expression ? For exemple, I would like to grep all .txt files using *.txt, like the following configurations, but it doesn’t interpret the * as a regex. :

enter image description here

However, when I run it directly from the terminal and not from the PyCharm Run button, it interpret the * as a regex.

python *.txt

Source: Python Questions