sun's longitude:300 37 19.80 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/delete.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
 ★ 글 지우기 항목입니다. 한번 더 생각하시고 결정하십시오.!!!
제목 8 번 글의 답장글 : [PHP] m (PCRE_MULTILINE), /pattern/m
 이름  산이 [홈]http://linuxchannel.net/

m (PCRE_MULTILINE)
      By default, PCRE treats the subject string as consisting of a
      single "line" of characters (even if it actually contains
      several newlines). The "start of line" metacharacter (^)
      matches only at the start of the string, while the "end of
      line" metacharacter ($) matches only at the end of the
      string, or before a terminating newline (unless
      D modifier is set). This is the same as
      Perl.
     
      When this modifier is set, the "start of line" and "end of
      line" constructs match immediately following or immediately
      before any newline in the subject string, respectively, as
      well as at the very start and end. This is equivalent to
      Perl's /m modifier. If there are no "\n" characters in a
      subject string, or no occurrences of ^ or $ in a pattern,
      setting this modifier has no effect.

ex)

$str = '0123456789\nabcdefg\nABCDEFG';

/pattern/ (normal)

^ => 0
$ => G


/pattern/m (multi-line "\n")

^ => 0, a, A
$ => 9, g, G





2003년 08월 02일 01:14:45 토(새벽)  from 61.254.75.40
0
암호: 공용 보안 SSL 서버가 준비되기 전까지는 off 합니다

apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.02(server) + (network) + (browser) seconds