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
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
What is the best way to use twitter typeahead for large amounts of data(say 1M)?
I see that there is remote option which gets data from the database directly. What is the best way to index the suggestions and how to cache them ?
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
if every one has noticed Gmail provides a wide range of email address probability.
so if ur email id is example#gmail.com
it can be used as
e.xample#gmail.com
e.x.ample#gmail.com
exa.mple#gmail.com
e.xam.ple#gmail.com
e.x.ample#gmail.com
e.xa.m.ple#gmail.com
...
and all this can be used as your official email id and mails to it will be sent in your example#gmail.com. The basic hampering of this is for registration modules leading to spamy registration.
my question was is there any way i can have a validation for this.
sorry if this question sounds lengthy and thanks in advance
Here you go:
\w+([-+.']\w+)*#\w+([-.]\w+)*\.\w+([-.]\w+)*
Regex Demo
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}$/
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
want these things when a function call :
1.Open a text file (not visible to user)
2.Select a Text which is to be change
3.change the text
4.And save it at same place.
This is not possible in JavaScript. JavaScript is sandboxed by the browser and doesn't have access to the local computer.
Also, what you're trying to do sounds dodgy, and may well be the exact reason why it's sandboxed.
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 want to implement web-cam in OpenERP. web-cam integration. Anyone give me idea how to and where to implement web-cam coding. I want to create widget for that like barcode.
On web client or on gtk, you should create different implementations, for web-client you must create a new widget i dont manage the the new JS framework but theorically this is the way.
Regards/