Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Excluding * and % from string

  •  08-27-2007, 10:35 AM

    Excluding * and % from string

    Hello All,

     I am just learning regex, I need to give a alert when user enters % or * signs anywhere in the name field of my Struts(java) app.  I have

    ^[^%*]+$  this working but just wanted to make sure I have it correct.  Thanks in advance for help.

    Regards,

    Srini

    ^[^%*]+$  this working but just wanted to make sure I have it correct.  Thanks in advance for help.

    Regards,

    Srini

    Filed under:
View Complete Thread