pegs.findAll iterator fix

Modified the findAll iterator so that it continues looking for a match within the input string (bug?).
Rewrote the changes to findAll using if/else
Merge pull request #948 from h3rald/patch-1

pegs.findAll iterator fix