0
Rubyコードで "abc $ name、defg"の "$ name"を見つける正規表現は何ですか?
"$name" must follow the Ruby syntax for global variable names;
I distinguish "$name" from the including text just by "$" at the head
and a non allowed character for variable names after the tail.
詳細について は、事前にありがとうございます。
可能複製(http://stackoverflow.com/questions/3648551/regex-that-matches-valid-ruby-local-variable-names) –
ありがとうございました情報のために。私は残りの質問が頭 "$"を見つける方法であると思います。 –
ええと、あなたの正規表現にリテラル "$"を入れますか?私はSOが便利だと分かっていますが、正規表現の基礎を学ぶことを強くお勧めします。 –