A way to obtain all positions of a char in text

Hello,

It would be nice to have a way to obtain all positions of a char in a string. Not first match (like find) but all apperance. eg. in the text “Pat supraetajat IKEA” the space char it is in position 4 and 16.

Best regards,
Radu.

How about that (below)?

space-positions.morph (2.8 KB)

2 Likes

@dgudkov It is working. :slight_smile:

Thank you.

You’re welcome! :slight_smile: