search for: 3000char

Displaying 1 result from an estimated 1 matches for "3000char".

Did you mean: 3000chars
2006 Apr 12
1
How to handle big string
Hi all Which is the fastest way to gsub a 5000 char string. i.e. big_string = "i am so <script>..3000char...</script>big<noscript>...2000 char...</noscript> gsub me!!!" # If i run: big_string.gsub(/<script(.|\s)*<\/script>/i, '' '').gsub(/<noscript>/, '' '').gsub(/</noscript>/, '' '') "cpu 99% and stuck...