http://qs321.pair.com?node_id=484982


in reply to Re^2: Applying a regex to part of a string
in thread Applying a regex to part of a string

Your substr is missing the +1 bit. It would only match between character positions 11 and 29, not 30.