Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^8: Help with RegEx

by mr_p (Scribe)
on Jul 01, 2010 at 17:03 UTC ( #847562=note: print w/replies, xml ) Need Help??


in reply to Re^7: Help with RegEx
in thread Help with RegEx

OK. All I am trying to say is for little bit of information I don't want to load document. I will spend more time on RegEx then loading a parser that I don't need too. Besides I can either get XML or HTML document.

Please don't take it the wrong way. I don't mean to go against you. You have helped me lots of time and this site has been really great for me. Its just that I want to be able to use perl and keep things a fast as possible. I want to keep my project. I don't want anyone saying perl is slow form my dept.

Thanks for your help.

Replies are listed 'Best First'.
Re^9: Help with RegEx
by ssandv (Hermit) on Jul 01, 2010 at 19:36 UTC

    Regular expressions with potentially zero-width wildcards (especially .*) can be exceedingly slow. If someone claims Perl is slow because it handles a difficult regular expression with due care, then that simply shows a lack of understanding on their part. Perl contains a regular expression engine, as do many other languages--but regular expression syntax is a language unto itself.

    Part of the advantage of using a module is that you get to take advantage of the effort someone else has gone to to get the regular expression right and (hopefully) efficient.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847562]
help
Chatterbox?
[GotToBTru]: "I did it my $way"
[JohnCub]: I hope $way isn't a hashref. ;)
[GotToBTru]: many times i've been told I made a real hash of thiings
[GotToBTru]: so .. perhaps it should b e
[thepkd]: Just wondering why $aohoaoh[0]->{'foo '}[0]->{'bar'} would be difficult to read and understand?
[thepkd]: I am a noob and find it easier

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2016-12-06 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (105 votes). Check out past polls.