Yes - thanks Scott.

On Tuesday, April 1, 2014 4:05:34 PM UTC-4, Scott Sturdivant wrote:
>
> 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]<javascript:>
> > 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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/3db1bdc9-e223-454a-a5c3-05ba610ed090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to