Is the 'basename' filter what you're looking for? http://docs.ansible.com/playbooks_variables.html#other-useful-filters
On Tue, Apr 1, 2014 at 1:53 PM, hindenburg <[email protected]>wrote: > 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<https://groups.google.com/d/msgid/ansible-project/668e0f3c-217e-4881-babf-8f5223983214%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPcsqxkMbP1QnvAJATDDQmc%3Dnr-UQHk2o0nXOgybwqd3ddcNcA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
