in reply to Regular Expression Question

use Regexp::Common; /^$RE{list}{-sep => ','}{-pat => '\w+'}$/

Abigail

Replies are listed 'Best First'.
Re: Re: Regular Expression Question
by TASdvlper (Monk) on Dec 05, 2003 at 14:47 UTC
    Didn't relalized there was Regexp module. For someone just learning how to use regexg, would you recommend understanding the basics first, prior to using the module.
      I don't have an answer to that. It's like asking I have a car, and I want to hire a driver. Should I first learn to drive myself?. It all depends. If you want to drive yourself as well, then it's worthwhile to learn to drive. If you're not going to drive, no need to learn it. But if you are going to drive, I don't know whether you should delay hiring a driver before you've mastered to drive yourself. I don't even know whether it matters what you do first.

      Abigail