[Sidefx-houdini-list] return

Rob Pieké rob-p at moving-picture.com
Wed Feb 11 13:10:33 EST 2009


sorry, forgot to mention "here's how to do it in python" :)

> myString.count( ':' )
> 
> for example:
>  >>> 'asdad:adsadff:asdaf:asdaf'.count(':')
> 3
> 
> 
> 
>> I have a string where parts of it are delimited by a ":".  I need an
>> expression to return the number of times this character appears in a string
>> - either hscript or python. Is there such an expression or is this an
>> function I need to write? Thanks
>>
> 
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list




More information about the Sidefx-houdini-list mailing list