Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
"R".match(%r[^R])一致するものを見つけます。
"R".match(%r[^R])
正規表現についてはよくわかりませんが、文字クラスを否定した^後、角かっこで囲まれた文字を考えました。[
^
[
私は何が欠けていますか?
あなたの場合、括弧は正規表現の一部ではありません、あなたの場合は あなたが望むものの前後に任意の文字に似ている%r|^R|か、または配置しますまたは%r'^R'%R%r|[^R]|/[^R]/
%r|^R|
%r'^R'
%
R
%r|[^R]|
/[^R]/