Hi Monks!
I have the string: $string='LPNTGVTNNAYMPLLGIIGLVTSFSLLGLXKARRD';
I want to match R|K and find all occurences and their positions in the string.As you can see, I have 1 'K' and 2 'R'.
I use /g in my pattern matching ,but it only returns all letters. It gives me wrong positions however, when I use index to see the position of each one...