33件ヒット
[1-33件を表示]
(0.041秒)
検索結果
-
OpenSSL
:: X509 :: Name :: MULTILINE -> Integer (21117.0) -
OpenSSL::X509::Name#to_s のフラグとして使います。
...OpenSSL::X509::Name#to_s のフラグとして使います。
複数行でフォーマットされます。... -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (3066.0) -
DNの文字列表現を返します。
...下のいずれかを渡します。
* nil
* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE
*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=fo......foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::COMPAT)
# => "C=JP, ST=Kanagawa, L=Yokohama, O=Example Company, OU=Lab3, CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::RFC2253)
# => "emailAddress=foobar@lab3.example.co.jp,CN=foobar,OU......SSL::X509::Name::ONELINE)
# => "C = JP, ST = Kanagawa, L = Yokohama, O = Example Company, OU = Lab3, CN = foobar, emailAddress = foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::MULTILINE)
# => "countryName = JP\nstateOrProvinceName = Kanagawa\nlocalityName... -
正規表現 (240.0)
-
正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references
...ティ(属性情報)による文字クラス指定も可能です。
以下の記法が使えます。
* \p{property-name}
* \p{^property-name} (否定)
* \P{property-name} (否定)
サポートされているプロパティのリストは
https://github.com/k-takata/Onigmo/blob/master/doc/Uni......キストは MatchData#[] で参照できる
m[1] # => "at"
//}
1,2,... ではなく、名前を付けることができます。
(?<name>pat)もしくは(?'name'pat)と記述します。キャプチャした文字列は
MatchData#[] に Symbol を渡すことで参照できます。
これは名......) # => /abc/i
Regexp.new("abc", Regexp::MULTILINE) # => /abc/m
Regexp.new("abc # Comment", Regexp::EXTENDED) # => /abc # Comment/x
Regexp.new("abc", Regexp::IGNORECASE | Regexp::MULTILINE) # => /abc/mi
//}
2.0.0以降では、文字クラスの...