Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Java Regular exp to check string
Name: sujie Date: July 11, 2007 at 04:10:27 Pacific OS: Windows CPU/Ram: 1 GB Product: microsoft
Comment:
Hi,
I need to have a validation in my Java program on a string. The string cannot contain special characters other than .(dot),_(underscore), -(hyphen).
name.matches("/[a-zA-Z0-9]/g") I tried this and it does not work .. could somebody suggest me what regular expression i need to use..
Summary: Hello I'm writing an alarm app. in Java. One of the alarms check continuously if a given file is opened by another app. and warning the user (with a 'beep' and a message) if this happens. I'm using a ...
Summary: I am trying to get my program to check if a duplicate ISBN is being entered but cant seem to get it too work, might be the strcmp - can anyone talk me through how to sort this, Im a beginner at C pro...