Does gsub have a global operator? How do I gsub in cases where there are multiple lines that need to be treated as a single string?
Does gsub have a global operator? How do I gsub in cases where there are multiple lines that need to be treated as a single string?
What is the difference between sub() and gsub()?
https://docs.ruby-lang.org/en/2.3.0/String.html#method-i-sub https://docs.ruby-lang.org/en/2.3.0/String.html#method-i-gsub
What makes you think that gsub needs any special hint to treat a multi-line string as a source of multiple matches? Show your work.
Walter
I decided I don’t want to gsub anything out but instead save a match to a variable That would be a different topic than gsub so should I start a new thread?