In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
wrote:

> if I have these lines:
> ---
> AAA BBB CCC
> BBB CCC AAA
> CCC AAA BBB
> ---
> 
> How to matching BBB at line 2 (BBB at the beginning of the line)
> but not matching line 1 and 3. ' /^BBB/ ' is not work.

use the m (for multiline) flag:

    /^BBB/m

now the ^ matches at the beginning of internal lines rather 
than only at the beginning of the string.
-- 
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to