fork download
  1. urls = ['http://f...content-available-to-author-only...r.com/site-feedback-issues-feature-requests/20/', 'https://f...content-available-to-author-only...t.net/index.php/board,1.50.html', 'https://f...content-available-to-author-only...o.com/how-can-i-help-comodo-please-we-need-you-b39.30/']
  2. pattern = /(\d+)(?=[^\d]+$)/
  3.  
  4. urls.each do |url|
  5. url.gsub!(pattern) {|m| m.to_i + 10}
  6. end
  7.  
  8. puts urls
Success #stdin #stdout 0.02s 9736KB
stdin
Standard input is empty
stdout
http://f...content-available-to-author-only...r.com/site-feedback-issues-feature-requests/30/
https://f...content-available-to-author-only...t.net/index.php/board,1.60.html
https://f...content-available-to-author-only...o.com/how-can-i-help-comodo-please-we-need-you-b39.40/