I'm parsing a variable and am trying to see if it's possible to get the 
substring to the right of the last forward slash of a string.
http://docs.ansible.com/playbooks%5fvariables.html#jinja2-filters
http://jinja.pocoo.org/docs/templates/#builtin-filters

I've been struggling with the replace filter.

{{ item.url | replace("*/", '')  }}

Is it possible to get the part after the last forward slash?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/668e0f3c-217e-4881-babf-8f5223983214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to