Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41178
    
  45
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regular expression which doesnt alllow *
 
Similar Threads
Doubt on Regular Expression
Alphabets only valitation
How can I add error handling facilities to this code?
Java Grammer/ Reg Ex For method identification
How to check whether name of the File is in a Specifi format??