wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes regular expression which doesnt alllow * Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "regular expression which doesnt alllow *" Watch "regular expression which doesnt alllow *" New topic
Author

regular expression which doesnt alllow *

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

I need a regular expression which doesnt allow * in it.


santhosh<br />SCJP,SCWCD
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

In Javascript?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
By "it", I assume you mean the string which is matched, not the regexp. Something like "^[^*]*$" should do the trick.


Ping & DNS - my free Android networking tools app
santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

yeah david.. requirement was Regular Expression for java script


hey dittmer,

you are genious... it worked. Thanks alot
[ July 24, 2007: Message edited by: santhoshkumar samala ]
 
wood burning stoves
 
subject: regular expression which doesnt alllow *