I wanted to validate some values using Javscript.
My senario is like this:
i have a variable something like this
"$[LANGCOD] $[PHONENO] $[CARDNO] "

In the text box i may give like this $[sdfssf]

now i sholud check if the text box value sequence is present in the above string.
I tried using Regular expression but since '$' and '[' are system defined symbols for regular expression i have a bottle neck over here....
do any one solution for this ......

Or just use Pattern.quote('your-pattern') and let the Pattern class do the heavy lifting...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.