search for: big_string

Displaying 1 result from an estimated 1 matches for "big_string".

Did you mean: alg_string
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>/, '...