i am having regular expression
i have validation.xml . In this file i am doing all regular expression my expression is
format="^.+$"
This expression is accepting alphabets, underscore and iphen. i want to make also to accept comma,period,single quotes. how to modify my method.
Try the Java Tutorials where you can try some regular expressions, and you find . is a metacharacter for almost anything. So ^.+$ matches everything on a single line except an empty String. You can find lists of metacharacters in the Pattern class too.
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
Gift giving made easy with the permaculture playing cards