るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.065秒)
トップページ > バージョン:2.1.0[x] > クエリ:String[x] > クエリ:h[x] > クエリ:matches?[x]

別のキーワード

  1. _builtin to_h
  2. struct to_h
  3. array to_h
  4. env to_h
  5. hash to_h

ライブラリ

クラス

検索結果

REXML::Entity.matches?(string) -> bool (72970.0)

string が実体宣言の文法に従う文字列であれば真を返します。

string が実体宣言の文法に従う文字列であれば真を返します。

@param string 判定対象の文字列

//emlist[][ruby]{
require 'rexml/document'

p REXML::Entity.matches?('<!ENTITY s "seal">') # => true
p REXML::Entity.matches?('<!ENTITY % s "seal">') # => true
p REXML::Entity.matches?('<!ELEMENT br EMPTY >') # => false
//}