About 205,382 results: "gsub"
Page 6 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On












  1.   if url.match(/http:\/\/edulinux.homeunix.org\/elinks-render\.html/)
  2.     html.gsub!(/(<p class=\"example\">)(.*?)(<\/p>)/, '<h2><font color="red">\2</font></h2>')
  3.             # we know what the link references.  :)
  4.             html.gsub!(/<(img.*?)>(faq|search|memberlist|usergroups|register|profile|you have no new messages|log out \[.*?\]|chat room<\/a>)/i,'\2')
  5.             # Remove the long list of relative links (I don't like them).
  6.             html.gsub!(/<link rel.*? \/>/,'')
  7.             # Turn on borders for the "main" table.
  8.             html.gsub!(/(<table class=\"forumline\".*border=)(\".*?\")(.*?>)/,'\11\3')
  9.             # link, and just display their status instead.
  10.             html.gsub!(/(<span class=\"postdetails\">.*?)(<img src.*? \/>)/i,'\1')
  11.             # of these -- either way they've been shortened.
  12.             html.gsub!(/(<img src.*?)(alt=)(\"Reply With Quote\")\s*(title=\"reply with quote\")(.*? \/>)/i, '\1\2Q \4')
  13.             html.gsub!(/(<img src.*?)(alt=)(\"edit\/delete this post\")\s*(title=\"edit\/delete this post\")(.*? \/>)/i, '\1\2E/D \4')
  14.             html.gsub!(/(<img src.*?)(alt=)(\"view ip address of poster\")\s*(title=\"view ip address of poster\")(.*? \/>)/i, '\1\2IP />')
  15. 	    html.gsub!(/<table cellspacing=\"0\" cellpadding=\"0\"\s*border=\"0\"\s*height="18"\s*width=\"18\">/, '<table border="0">')
  16.             html.gsub!(/(<img src.*?)(alt=)(\"view user\'s profile\")\s*(title=\"view user\'s profile\")(.*? \/>)/i, '\1\2Profile  />')
  17.             html.gsub!(/(<img src.*?)(alt=)(\"send private message\")\s*(title=\"send private message\")(.*? \/>)/i, '\1\2PM />')








Back to Top