Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mrbgems/mruby-regexp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ str.sub(re, replacement) # replace first occurrence
str.sub(re) { |m| ... } # replace with block
str.gsub(re, replacement) # replace all occurrences
str.gsub(re) { |m| ... } # replace all with block
str.sub!(re, replacement) # => self, or nil if no match
str.sub!(re) { |m| ... } # same, replacing with the block result
str.gsub!(re, replacement) # => self, or nil if no match
str.gsub!(re) { |m| ... } # same, replacing with the block result
str.scan(re) # => array of matches
str.split(re) # => array of parts
str[re] # => matched substring or nil
Expand Down
Loading