For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2006 > Regular Expressions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Regular Expressions
adityo

2006-07-25, 6:57 pm

Hello,

Im new to perl..and finding it tough to write proper regular
expressions..
basically i want to extract all text from a document after matching a
word..eg..everything after encountering the word 'References'

any ideas..pls!!!

Paul Lalli

2006-07-25, 6:57 pm

adityo wrote:
> Im new to perl..and finding it tough to write proper regular
> expressions..


What, precisely, are you finding "tough"?

> basically i want to extract all text from a document after matching a
> word..eg..everything after encountering the word 'References'


What have you tried so far? How has it failed to do what you want?

> any ideas..pls!!!


1) Read: perldoc perlretut, perldoc perlre, perldoc perlreref
2) Post a short-but-complete script that demonstrates the failure
you're encountering, along with sample input and desired output.

Paul Lalli

Shanna

2006-07-26, 6:57 pm


adityo wrote:
> Hello,
>
> Im new to perl..and finding it tough to write proper regular
> expressions..
> basically i want to extract all text from a document after matching a
> word..eg..everything after encountering the word 'References'
>
> any ideas..pls!!!


Paul had mentioned some things to read for understanding regexp and I
found that the perldoc perlretut helped me alot. Paul recommended them
to me as well and it helped greatly!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com