[Sidefx-houdini-list] return

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

myString.count( ':' )

for example:
 >>> 'asdad:adsadff:asdaf:asdaf'.count(':')

> 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

More information about the Sidefx-houdini-list mailing list