pattern as a sentence in pattern matching 
Author Message
 pattern as a sentence in pattern matching

Hi,

I want to get a sentance with an interested word, such as:

$_ =~ s/[\.?!](\s*.* \b$word\b .*)\./$1/;

Could you please tell me the best way?

Thanks

Ying



Tue, 01 Jul 2003 03:25:16 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Regular Expressions/Pattern Matching/Unordered pattern

2. help with pattern match (repeated patterns)

3. Pattern bug matching whitespace in multi-line match?

4. Pattern Match - substitute a string after the match

5. combine two pattern matches to one match?

6. Pattern matching, grabing everything right of the match

7. multi-char pattern with other patterns

8. How to find pattern in pattern (newbie Q)?

9. ANN: String::Pattern - yet another pattern ( template ) processing module

10. split() INTO pattern instead of ON pattern?

11. Pattern matching: are regexes always fastest?

12. pattern matching with non-existence of a string

 

 
Powered by phpBB® Forum Software