remove characters from a string

echolab's picture

hi all,

i need a little help with strings. i'm getting a dynamic string via osc that looks like:

"............first name"

and i want to remove the points "." out of the sring to get just: "first name"

any suggestions?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

franz's picture
Re: remove characters from a string

string replace

echolab's picture
Re: remove characters from a string

i have tried that, but it gives me emty spaces in front of the name when i feed it into an image with sting patch that is left aligned. i really need to remove the whole thing.

franz's picture
Re: remove characters from a string

can't you truncate the empty spaces with "String Truncate" ?

Swiftlikeninja's picture
Re: remove characters from a string

You can delete the spaces from string replace and just leave the replace text blank (instead of " "). By default the replace character is space not blank. I think that may be your issue.

echolab's picture
Re: remove characters from a string

"just leave the replace text blank (instead of " ")"

yeah, that does the trick.

thank you very much grischa