I have a comma separated list, the curve ball is, some of the items are strings with commas inside them (so I cant just exploid the string using a comma as a separator). How can I write a reg to...
Like I said, this code works very well. I got over 10000 lines of code in this project, and this class is one of the better ones I wrote. It makes managing all the tables VERY easy. There is only...
I work for a company as part of there IT staff as a web dev. I never signed any "we own everything you do" type of papers. Ive designed a few CMS, about 90% of the work on company hours and 10% (or...
A1ien51: Tnx, that was my option 2. It works good. Im curious at how much more efficient this is then my first loop, either way, this method looks "cleaner".
How would turning the second parameter into a regexp work? replace doesnt take regexp as the second parameter. If it did, my code would work without this loop....
...
Because replace function only takes a regular string as a second parameter. So earlier in my code where I have the location as my first parameter and the representation as my second, it would not...
I dont think I can... I am using an array of instances of my object that holds strings. So unless there is a way to change it to regexp string and back, I cant use regexp for this loop because my obj...
As the title says, how can I do a multiple replaces without using regexp? Right now I just have a while that keeps checking if it exist, then if it does, replacing it. Not very efficient.
I have some JavaScript (greasemonkey) that delete's post in a forum so I dont have to load its contents (saving bandwidth and time). Problem is the javascript only runs after all the images are...
well that is kind of over kill for what I want... in my script there are about 100 rows while all rows have many cells. Then based on certain data I want to change the color (and its not based on a...
but I was not aware that the TR background that came from "css-on-the-fly" was not taking priority over a css class because it was effecting the TD (the child of the...
http://jsbeautifier.org/ does the format, but it also does that messed up { on the same line BS... I am thinking of coding one myself... Shouldn't take 2 long (espeiclly if I burow his code)... maybe...