in reply to Regex doubts

Try taking a look at perlretut.