×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Pattern Matching NEwbie Questions

Pattern Matching NEwbie Questions

Pattern Matching NEwbie Questions

(OP)
Hi there,
I am trying to learn Perl at present but am coming very unstuck at pattern matching.  I understand the principles but not the syntax or how t use the data matched.

I am trying to read files [.txt & .html] (with permission, from remote server) for inclusion to my site (just the bits I want). I think I would use LWP Simple to get the file, reading it into the $_ variable.  I would then match the file for the text I want.

Now here is where the problem starts, some of the files have a fixed length (number of lines) before the real data starts, other have the wanted data in the middle of the file so I would need to define a start and stop point.

My Questions:  
Can anybody help me to understand how to pattern match?
Are there any idiot proof (!) tutorials I should read.
 

RE: Pattern Matching NEwbie Questions

That is a huge topic...  there is a decent intro at http://www.effectiveperl.com/EP.04.pdf

Additionally, while I am not the be all, end all of Perl Pattern Matching, I am working on a FAQ.  If you can wait a day or two or three or.....   It will be up soon.

'hope the web page helps...

If you have more specific questions, feel free to post them.


 
 
 keep the rudder amid ship and beware the odd typo

RE: Pattern Matching NEwbie Questions

(OP)
Hi goBoating,

Cheers for the reply and Yep can eay wait a day or more - can you let me know when you have it up and going.

I feel I really need to learn this but my intelligence is limited!!

Cheers again
Mike

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close