From 8f4ae31affe5245ec074cb767c0a1ca440686fe9 Mon Sep 17 00:00:00 2001 From: LEE Yun-young Date: Wed, 22 Oct 2003 19:43:07 +0000 Subject: [PATCH] New translate git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@142880 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/configure.xml | 22 ++++++++--------- reference/pcre/constants.xml | 47 +++++++++++++++++------------------ reference/pcre/reference.xml | 48 +++++++++++++++++------------------- 3 files changed, 57 insertions(+), 60 deletions(-) diff --git a/reference/pcre/configure.xml b/reference/pcre/configure.xml index e68200c02f..2e77ba87f8 100644 --- a/reference/pcre/configure.xml +++ b/reference/pcre/configure.xml @@ -1,16 +1,17 @@ - - + + +
&reftitle.install; - Beginning with PHP 4.2.0 these functions are enabled by default. You can - disable the pcre functions with - . Use - to specify DIR - where PCRE's include and library files are located, if not using bundled library. - For older versions you have to configure and compile PHP - with in order - to use these functions. + PHP 4.2.0부터 이 함수들은 기본값으로 사용 가능합니다. + 로 PCRE 함수를 + 사용하지 않을 수 있습니다. 번들된 라이브러리를 사용하지 않는다면, + 을 이용하여 + PCRE의 인크루드와 라이브러리 파일이 있는 특정한 디렉토리를 지정하십시오. + 이전 버전에서는 이 함수들을 사용하기 위해서는 PHP를 + 를 주어서 + 설정하고 컴파일 해야합니다. &windows.builtin;
@@ -35,4 +36,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - diff --git a/reference/pcre/constants.xml b/reference/pcre/constants.xml index 38f2465906..fa01ae69ad 100644 --- a/reference/pcre/constants.xml +++ b/reference/pcre/constants.xml @@ -1,67 +1,66 @@ - - + + +
&reftitle.constants; &extension.constants; - PREG constants + PREG 상수 - constant - description + 상수 + 설명 PREG_PATTERN_ORDER - Orders results so that $matches[0] is an array of full pattern - matches, $matches[1] is an array of strings matched by the first - parenthesized subpattern, and so on. This flag is only used with - preg_match_all. + $matches[0]는 패턴 전체를 가지고, $matches[1]는 + 처음 괄호에 들은 서브패턴의 문자열인 방식으로 결과를 정렬합니다. + 이 플래그는 preg_match_all에서만 사용합니다. PREG_SET_ORDER - Orders results so that $matches[0] is an array of first set of - matches, $matches[1] is an array of second set of matches, and so - on. This flag is only used with preg_match_all. + $matches[0]는 매치된 첫번째 세트고, $matches[1]는 + 두번째 세트인 방식으로 결과를 정렬합니다. + 이 플래그는 preg_match_all에서만 사용합니다. PREG_OFFSET_CAPTURE - See the description of - PREG_SPLIT_OFFSET_CAPTURE. This flag is - available since PHP 4.3.0 . + PREG_SPLIT_OFFSET_CAPTURE의 설명을 보십시오. + 이 플래그는 PHP 4.3.0부터 사용할 수 있습니다. PREG_SPLIT_NO_EMPTY - This flag tells preg_split to only return only - non-empty pieces. + 이 플래그는 preg_split가 비어있지 않는 조각만을 + 반환하게 합니다. PREG_SPLIT_DELIM_CAPTURE - This flag tells preg_split to capture - parenthesized expression in the delimiter pattern as well. This flag - is available since PHP 4.0.5 . + 이 플래그는 preg_split가 구분자 안의 괄호로 + 둘러싸인 표현식도 잡아내게 합니다. PHP 4.0.5부터 + 사용할 수 있습니다. PREG_SPLIT_OFFSET_CAPTURE - If this flag is set, for every occuring match the appendant string - offset will also be returned. Note that this changes the return + 이 플래그를 지정하면, 모든 부수적인 문자열 오프셋의 매치도 반환합니다. + Note that this changes the return value in an array where very element is an array consisting of the matched string at offset 0 and it's string offset into subject at - offset 1. This flag is available since PHP 4.3.0 - and is only used for preg_split. + offset 1. PHP 4.3.0부터 사용할 수 있고, + preg_split에서만 사용합니다. diff --git a/reference/pcre/reference.xml b/reference/pcre/reference.xml index 8154629100..80c5730419 100644 --- a/reference/pcre/reference.xml +++ b/reference/pcre/reference.xml @@ -1,39 +1,38 @@ - - + + + - Regular Expression Functions (Perl-Compatible) + 정규표현식 함수 (펄-호환) PCRE
&reftitle.intro; - The syntax for patterns used in these functions closely resembles - Perl. The expression should be enclosed in the delimiters, a - forward slash (/), for example. Any character can be used for - delimiter as long as it's not alphanumeric or backslash (\). If - the delimiter character has to be used in the expression itself, - it needs to be escaped by backslash. Since PHP 4.0.4, you can also use - Perl-style (), {}, [], and <> matching delimiters. + 이 함수들에서 사용되는 패턴 문법은 펄에 가깝습니다. 표현식은 + 구분자로 감싸져야만 합니다. 예를 들면, 슬래쉬(/)로 감싸줍니다. + 영문자와 숫자, 백슬래쉬(\)를 제외한 어떠한 문자라도 구분자로 + 사용할 수 있습니다. 구분자가 표현식 안에서 사용될 경우, + 백슬래쉬로 이스케이프해야합니다. PHP 4.0.4부터, 펄 형식의 + (), {}, [], <> 매칭 구분자를 사용할 수 있습니다. - The ending delimiter may be followed by various modifiers that - affect the matching. - See Pattern Modifiers. + 종료 구분자 뒤에는 매칭에 영향을 주는 여러가지 변경자(midifier)를 + 쓸 수 있습니다. 패턴 + 변경자를 참고하십시오. - PHP also supports regular expressions using a POSIX-extended syntax - using the POSIX-extended regex functions.. + PHP는 POSIX 확장 정규표현식 함수로 + POSIX 확장 문법을 사용하는 정규표현식을 지원합니다.
&reftitle.required; - Regular expression support is provided by the PCRE library - package, which is open source software, written by Philip Hazel, - and copyright by the University of Cambridge, England. It is - available at &url.pcre;. + 정규표현식 지원은 Philip Hazel이 작성한 PCRE 라이브러리 패키지에 + 의해 제공됩니다. 저작권은 University of Cambridge, England에 + 있습니다. &url.pcre;에 존재합니다.
@@ -55,7 +54,7 @@ &reftitle.examples; - Examples of valid patterns + 유효한 패턴 예제 /<\/\w+>/ |(\d{3})-\d+|Sm @@ -66,21 +65,21 @@ - Examples of invalid patterns + 유효하지 않은 패턴 예제 - /href='(.*)' - missing ending delimiter + /href='(.*)' - 종료 구분자가 없습니다 - /\w+\s*\w+/J - unknown modifier 'J' + /\w+\s*\w+/J - 알 수 없는 변경자 'J' - 1-\d3-\d3-\d4| - missing starting delimiter + 1-\d3-\d3-\d4| - 시작 구분자가 없습니다 @@ -113,4 +112,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> -