in reply to Regex capture between word and punctuation

I suspect you will soon want to know:

How do I write a program that prints only words (not the entire line) in the file part3.txt (attached) on a word boundary that have the letter "p" or "P" in them?

the part3.txt is

" CPAN stands for comprehensive Perl Archive Network. ^ and $ are used as anchors in a regular expression. /pattern/ is a pattern match operator. Perl is very easy to learn. Enter 'H' or 'h' for help."

In that case, please see Pattern matching, and don't bother posting a new question.

Out of curiosity, what book are you using? It seems to be a poor one (based on the number of times these questions have been asked).

-driver8

Update: It appears you didn't get my message in time.

Replies are listed 'Best First'.
Re^2: Regex capture between word and punctuation
by negzero7 (Sexton) on Mar 19, 2008 at 01:49 UTC

    Nope sorry I didn't check this til just now. I appreciate the links to other examples, but i don't understand what I'm looking for exactly. I think my pattern matching for the other topic is fine, but my split function needs something.

    I would prefer if I could someone to spell it out nicely for me. If I am in the wrong place for this kind of stuff, please point me to where I should be asking these types of questions.

    Please note I have been trying to figure this out myself. If I can't figure it out after a while of trying, I figure it's time to ask