in reply to Re: How do I match for a pattern in an array element delimited with a /
in thread How do I match for a pattern in an array element delimited with a /

You need to include the slashes in the capture.

Here's yet another way:

for (@array) { while (m(/MSS)g) { s{\G([^/]*?) +(?![* ])}{$1}g } }

The PerlMonk tr/// Advocate
  • Comment on Re: Answer: How do I match for a pattern in an array element delimited with a /
  • Download Code