-
-
-
-
正規表現の操作
-
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
正規表現の操作
次の表に、正規表現で動作する演算子を示します。特定のデフォルトの構文式で正規表現演算子によって実行される操作は、式プレフィックスがテキストまたは HTTP ヘッダーを識別するかどうかによって異なります。ヘッダーを評価する操作は、指定されたヘッダータイプのすべてのインスタンスに対するテキストベースの操作よりも優先されます。演算子を使用する場合は、<text> テキストを識別するために構成するデフォルトの構文式プレフィクスに置き換えます。
正規表現演算 | 説明 |
---|---|
<text>BEFOREGEX (<regular expression>) | <regular expression>引数に一致する文字列の前のテキストを選択します。正規表現がターゲットのどのデータとも一致しない場合、式は長さ 0 のテキストオブジェクトを返します。次の式は、「テキスト/プレーン」から文字列「テキスト」を選択します。http.res.header(「コンテンツタイプ」).before_regex(RE#/#) |
<text>.AFTER_REGEX(<regular expression>) | <regular expression>引数に一致する文字列の後のテキストを選択します。正規表現がターゲットのどのテキストとも一致しない場合、式は長さ 0 のテキストオブジェクトを返します。次の式は、「myExample」から「例」を抽出します。http.req.ヘッダー(「etag」).after_regex(再/私の/) |
<text>.REGEX_SELECT(<regular expression>) | <regular expression>引数に一致する文字列を選択します。正規表現がターゲットと一致しない場合、長さ 0 のテキストオブジェクトが返されます。次の例では、Viaヘッダーから文字列「NS-CACHE-9.0:90」を抽出します。http.req.header(“via”).regex_select(re!NS-CACHE-\d.\d:\s*\d{1,3}!) |
<text>.REGEX_MATCH(<regular expression>) | ターゲットが <regular expression> 1499 文字までの引数に一致する場合に TRUE を返します。正規表現は、次の形式である必要があります。re <delimiter> 正規表現< delimiter> 両方の区切り文字は同じである必要があります。さらに、正規表現は Perl 互換 (PCRE) の正規表現ライブラリ構文に準拠している必要があります。詳しくは、http://www.pcre.org/pcre.txtを参照してください。特に、pcrepattern のマニュアルページを参照してください。ただし、次の点に注意してください。後方参照は許可されていません。再帰的な正規表現は推奨されません。ドットメタ文字は、改行文字にも一致します。Unicode 文字セットはサポートされていません。設定テキストモード (無視設定) は、(? i) 正規表現で指定された内部オプション。例:http.req.ホスト名.正規表現一致(re/[[:alpha:]] +(abc){2,3}/)および http.req.url.set_テキストモード(urlエンコード).正規表現一致(re#(ab+c)#)次の例では、abとaBに一致します:http.req.url.regex_match(re/a (? i) b/) 次の例では、ab、aB、Ab、および AB に一致します。http.req.url.set_text_mode (無視) .regex_match (re/ab/) 次の例では、ドットメタ文字も改行文字と一致する、大文字と小文字を区別しない複数行の一致を実行します:http.req.body.regex_match (re/ (? ixm) (^ab (.*) cd$)/) |
共有
共有
この記事の概要
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.