in reply to Re^4: How can one create an array of the indices at which a given character appears in a string?
in thread How can one create an array of the indices at which a given character appears in a string?

> Capturing parens not needed

Imho that's why hdb got (2,2)

The first was the end for $& and the second for $1 and so on.

Cheers Rolf

PS: Je suis Charlie!

  • Comment on Re^5: How can one create an array of the indices at which a given character appears in a string?