Subject: [ansible-project] Need Help in Ansible regex


Not quite sure what you are trying to do with the slash ("/") symbol in
your regex. If you want to use it to escape the dot (".") sign then you
need to use a backslash ("\") instead of a slash and you need to put it
before the dot not after it.

So try this: dp-steps-common-[0-9\.]+[0-9\.]+[0-9][0-9\.]rpm$

Also there is a quite handy webpage that helps you test your regex. Just
visit and type your regex in the small field on top and the
string you want to capture with your regex in the large field below. Then
you can play around with your regex and the webpage will tell you which
part of your regex captured which part of the string.

On Friday, 24 January 2020 07:09:47 UTC+1, Rakesh Parida wrote: