Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: problem usi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 10975 of 11401
Post > Topic >>

Re: problem using backslash on brackets in regular expressions

by rvtol+news@[EMAIL PROTECTED] (Dr.Ruud) Apr 23, 2008 at 01:22 AM

Daniel McClory schreef:

> while(<INPUT>)
>    {
>      $_ =~ s/\[*\]//;
>      $_ =~ s/\(*\)//;
>      print $_;
>    }

     while ( <INPUT> ) {
         s/\[.*?\]//;
         s/\(.*?\)//;
         print;
     }

-- 
Affijn, Ruud

"Gewoon is een tijger."
 




 5 Posts in Topic:
Joining/Merging AoA
v3gupta@[EMAIL PROTECTED]  2008-04-21 23:28:58 
problem using backslash on brackets in regular expressions
danmcclory@[EMAIL PROTECT  2008-04-22 19:05:39 
Re: problem using backslash on brackets in regular expressions
rvtol+news@[EMAIL PROTECT  2008-04-23 01:22:06 
RE: problem using backslash on brackets in regular expressions
adarsh.s85@[EMAIL PROTECT  2008-04-23 05:28:50 
RE: problem using backslash on brackets in regular expressions
"Wagner, David --- S  2008-04-22 18:17:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 7:04:36 CDT 2008.