Browse by Tags
Showing page 2 of 2 (17 total posts)
I try to check hexadecimal character codes according to this specification : "Only allow characters which hexadecimal code is between 20 and 7E".
I tried this : myString.matches("[\\x20-\\7E]"); but it doesn't work.
Any idea ?
I am trying to find out a regex pattern for a particular URL type, to extract a particular piece of information from that URL.
I am working on JAVA and the URL sample goes like this
I am trying to search for the italicized part of the ...
I want to manipulate an HTML document using regular expressions.
I want to add disable='true' in all input fields not having id='controlId1' in an HTML document. I am using Java 1.5. I have written following incomplete code.
String htmlDoc = "<INPUT type=\"button\" id='controlId1' ...
I am using Java's regular expression library.
I need to extract the common name from an active directory's distinguished name for a user. I have the String representation of a user's distinguished name. The only portion I need or care about is the common name. I am trying to write a regular expression that will extract that ...
I am just learning regex, I need to give a alert when user enters % or * signs anywhere in the name field of my Struts(java) app. I have ^[^%*]+$ this working but just wanted to make sure I have it correct. Thanks in advance for help.
^[^%*]+$ this working but just wanted to make sure I ...
I've been tasked with coming up with an expression that would do password validation for our application. After doing a search for ideas I came across this site and this is the solution I was able to come up with:
Problem: A valid password is a minimum of eight characters and a maximum of sixteen. It contatins at ...
To keep truly platform independent when using Java you should always consider using
instead of \r, \n or the combination of both.
String NewText = matcher.replaceAll("-- $0 *by migration" + System.getProperty("line.separator") + "Second_String");