-
String Removal
From
Cyclops@VERT/SRBBS to
All on Wed Apr 5 14:42:00 2006
How would one say... Ok, I KNOW that string1 is in string2, I want to REMOVEãstring1 from string2, how do I do that?ããI know in older days of programming you had to split a string into 3 differentãsections and resplice them together.ããIs that still the most efficient method?ãã---ã þ Synchronet þ Shadow River - shadowriver.homeip.netã
-
From
Digital Man@VERT to
Cyclops on Wed Apr 5 17:03:56 2006
Re: String Removalã By: Cyclops to All on Wed Apr 05 2006 02:42 pmãã > How would one say... Ok, I KNOW that string1 is in string2, I want to REMOVã > string1 from string2, how do I do that?ã > ã > I know in older days of programming you had to split a string into 3 differeã > sections and resplice them together.ã > ã > Is that still the most efficient method?ããJavaScript provides the String.replace() method which works well for this.ãã digital manããSnapple "Real Fact" #3:ãBeavers can hold their breathe for 45 minutes under water.ãNorco, CA WX: 56.1øF, 61% humidity, 6 mph WSW wind, 1.12 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Tracker1@VERT/TRN to
Cyclops on Thu Apr 13 01:44:00 2006
Cyclops wrote:ã> How would one say... Ok, I KNOW that string1 is in string2, I want to REMOVEã> string1 from string2, how do I do that?ã> ã> I know in older days of programming you had to split a string into 3 differentã> sections and resplice them together.ã> ã> Is that still the most efficient method?ããstring1 = string1.replace(string2, "")ãã-- ãMichael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.netãicq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)ãã---ã þ Synchronet þ theroughnecks.net - you know you want itã
-
From
Cyclops@VERT/SRBBS to
Tracker1 on Sat Apr 15 02:51:00 2006
-
From
Digital Man@VERT to
Cyclops on Sat Apr 15 13:13:28 2006
Re: Re: String Removalã By: Cyclops to Tracker1 on Sat Apr 15 2006 02:51 amãã > I tried the replace method, did not work, no clue why.ããPost some samples of what you tried.ãã digital manããSnapple "Real Fact" #7:ãA queen bee can lay 800-1500 eggs per day.ãNorco, CA WX: 80.4øF, 44% humidity, 0 mph E wind, 0.14 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã