Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
NOTE: This is not a duplicate. I have searched everywhere and have not gotten an answer.
I want to take a certain string ([0;14;32m) and no matter what the numbers are, always replace that string with nothing. I have tried everything and haven't found a solution.
str.replace(/\[\d;\d{2};\d{2}m/, "")
http://bit.ly/1cjUUBL
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to know how I can prevent a word from being submitted in my database
lets say I want to prevent the word 'fast car' what type of code would I use to do that. the codes that im currently using are html, javascript, php. for my website.
You can use RegEx.
On client side, refer https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
I need to pass an array as a function argument from php to js.I need a way to pass them to the function.Can anyone please help me with this. Thanks a lot..
Convert your PHP array to JS Object (in JSON).
var obj = <?= json_encode($phpArr); ?>;
myAwesomeFunction(obj);
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I'm looking to build a gigapixel panorama in HTML 5 and Javascript. Similar to this one - http://visualise.com/panoramas/ipad-and-iphone-html5-gigapixel-panoramas
Any ideas of places to start or any APIs to look at?
Thanks.
Well, firebug is your friend with this. It turns out that the site uses 'panopress' which luckily turns out to be free - http://www.panopress.org/
Unluckily, it also turns out to be a Wordpress plugin - you could however have a look at the associated javascript and work it out from there . ..
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
This is my code in my javascript:
var concatId = document.MyForm.concatIdSaved.value;
This is giving me string as 3,2,4,00201,
After 00201 iam getting comma also.
All four values are coming in a single String.
Now i want this string as 00201,2,3,4
Someone please help me on this.
var concatId = document.MyForm.concatIdSaved.value.split(",").sort().join();
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm using jquery.validate.addMethod(), and need a regex for specific phone number format. I somehow knew it before, but since I don't use regex that much, I forgot.
So, this is just a simple question: How do you create a regex for javascript on the following format:
(000)000-0000
The current phoneUS format which jQuery Validate possess is not applicable to the current problem.
/^\(\d{3}\)\s?\d{3}-\d{4}$/
This allows for a space after the closing parenthesis as well.
Something like this:
/^\(\d{3}\)\d{3}-\d{4}$/