Fritz Borgstedt wrote:
> >How do I write a regex that will match through multiple 
> lines of data?
> 
> 
> You can use (?s) as embedded pattern-match modifier.
> 
> Instead of 
> 
>     if ( /$pattern/si )
> you may use
> 
>     $pattern = "(?si)foobar";
>     if ( /$pattern/ ) 

Maybe I wasn't clear or don't understand.

I am try to write a bombre regex that scans across multiple lines.

For example(a paragraph extract from a spam email):
I anticipate that you read this mail quickly and let me know your  
opinion or willingness on this classified information that I will  
release to you. Firstly, I am Mrs. Rosemary Asare, the branch manager  
of the Eco Bank Of Ghana Limited, First Light Branch Accra. I am a  
Ghanaian.

If, for example, I wanted to match (the branch manager of the Eco Bank
of Ghana Limited) in my bombre expression, how would I write it?
Bearing in mind that carriage returns don't carry across very well in
this list server, there is a carriage return after "the branch manager"
in the above paragraph.

Here's what I would put in my regex if I wanted to try and catch it (but
I know it's not right because the analyzer doesn't pick it up):
the.branch.manager.of.the.Eco.Bank.Of.Ghana.Limited

Kind Regards,
Brett


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to