Using javascript, i need a regular expression that DOES NOT allow user to enter following words in a text box ( CASE INSENSITIVE ). so user should not be able to enter these words no matter what the case is Apple, Orange, Banana, Peach
Only Alpha numeric values are allowed with Dot. Special characters are not allwoed except dot
Following is what i tried, but does not work.
"^([a-zA-Z0-9.]*|((?i)Apple|Orange|Banana|Peach|))$"
Example valid value
SomeValue 23.56
Example invalid Value
Apple 23.56