• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regular expression which doesnt alllow *

 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a regular expression which doesnt allow * in it.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Javascript?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By "it", I assume you mean the string which is matched, not the regexp. Something like "^[^*]*$" should do the trick.
 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic