오늘은 대한입니다.
sun's longitude:299 44 14.80 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
7 번 글의 답장글: [PHP] m (PCRE_MULTILINE), /pattern/m
글쓴이: 산이 [홈페이지] 글쓴날: 2003년 08월 02일 01:14:45 토(새벽) 조회: 3499
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





 
이전글 : [PHP] PCRE Pattern Modifiers
다음글 : [PHP] [0-9], [0-9]*, [0-9]+  
 from 61.254.75.40
JS(Redhands)Board 0.4 +@

|글쓰기| |답장쓰기| |수정| |삭제|
|이전글| |다음글| |목록보기|
인쇄용 

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

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