• Post Reply Bookmark Topic Watch Topic
  • New Topic

regular expression which doesnt alllow *  RSS feed

 
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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Javascript?
 
Rancher
Posts: 42975
76
  • 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 ]
 
Tell me how it all turns out. Here is a tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!