6.3:Regular Expressions

正規表現

Regular expressions allow you to check if a pattern is contained within a string. Use Regular expressions when one of the search or comparison chunk expressions does not do what you need (see the section on Comparing and Searching above).

正規表現を使うと、文字列の中にあるパターンが含まれているかどうかを調べられます。チェンク表現式での検索結果や比較結果が思い通りに行かないときに正規表現を使います(この件に関しては、このまえのセクションであるComparing and Searchingで記述しています)。

Revolution supports searching for a pattern, replacing a pattern, or filtering the lines in a container depending on whether or not each line contains the pattern. Regular expressions use PERL compatible or “PCRE” syntax. A table showing the syntax supported is shown in the figure below. For more details on supported syntax, see the PCRE manual at http://www.pcre.org/man.txt

レヴォルーションでは、パターン検索、パターン置換、更に各行があるパターンを含むか否かを調べる、コンテナ内の行のフィルタリングをサポートしています。正規表現はPERL(パール)互換、或いは「PCRE(Perl Compatible Regular Expressions)」と呼ばれる文法(シンタックス)を使っています。レヴォルーションでサポートする文法の一覧は、次に示します。サポートしている文法に関する詳細は、次のURLにあるPCREマニュアルをご覧下さい。http://www.pcre.org/man.txt