title: howto extract last number in ansible variable
body: <p>I have variable, its version numbering. How I catch last number in version</p>
  
  <p>example</p>
  
  <pre><code>app_ver: 1.5.0.0.20
  
  - debug:
      var: app_ver | regex_search('^(\d+).(\d+).(\d+).(\d+).(\d+)$') | list
  </code></pre>
  
  <p>gives me </p>
  
  <pre><code>"app_ver |regex_search('^(\\d+).(\\d+).(\\d+).(\\d+).(\\d+)$') | list": [
          "1",
          ".",
          "5",
          ".",
          "0",
          ".",
          "0",
          ".",
          "2",
          "0"
      ]
  </code></pre>
  
  <p>I need last number, may be 1-figure or more</p>