in reply to Match and extract three characters from the middle of a string

Just count carefully:
# . (dot) symbol means any character # take 3rd, 4th and 5th chars $inq =~ m|..(...)|; print $1;


  • Comment on Re: Match and extract three characters from the middle of a string
  • Download Code