[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Regex which works, but doesn't



WagsWorld@aol.com wrote:
>            $_ = '     " F3 - CSP415P2 - Salesrep Statistics by Terminal 
>-(A) All Accounts".';
>            if ( /^\s+\"\s*(S*)F(\d+)\.*(.+)\"/i ) {

Is this the problem?  You have the $_ string spread out over two lines.  Either
put it all on one line, or use the /s flag for the regex.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  ken@forum.swarthmore.edu                            The Math Forum



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org