るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.015秒)
トップページ > クエリ:Regexp[x] > クエリ:escape_path[x]

別のキーワード

  1. cgi escape_html
  2. cgi escape
  3. cgi escape_element
  4. shellwords escape
  5. cgi table_for_escape_html__

ライブラリ

モジュール

検索結果

WEBrick::HTTPUtils.#escape_path(str) -> String (18107.0)

与えられた文字列を数値参照文字列に変換します。

...て変換します。

num = '0123456789'
lowalpha = 'abcdefghijklmnopqrstuvwxyz'
upalpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mark = '-_.!~*\'()'
unreserved = num + lowalpha + upalpha + mark
/[^#{Regexp.escape(unreserved + ":@&=+$,")}]/n

@param str 文字列を指定します。...