2016-04-14 13 views

答えて

4
"I ".gsub(/(?<=[IRPO]) /, "") # => "I" 
"A ".gsub(/(?<=[IRPO]) /, "") # => "A " 
1
" P $ R 3I&".gsub(/([IRPO])\s+/,'\1') 
    #=> " P$ R3I&"