Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » alphanumeric with restraints
  • Need an expression to find all text between numeric identifiers

    Hello, I am using C# in Visual Studio 2008.  I have a text file of the entire Bible that I am wanting to either put into a database or write to an XML document.  The format of the text is as follows with comments in C# single line comment style to the right of the actual text (example: Genesis  //book ...
    Posted to Construction Advice (Forum) by RandyHJ on May 13, 2008
  • Check hexadecimal character codes in Java String

    Hello,  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 ?  
    Posted to Construction Advice (Forum) by Chickadee on March 31, 2008
  • Need to test a word and return a match if both Alpha and numeric

    I am writing an upper/lower casing name/address string parser in VBA and have recently started looking at regex instead of iterative testing. For one of the tests, I want to return a true/false result from testing a single word string that is comprised of BOTH uppercase English characters and digits 0-9  (e.g.123BJZ1Q) in order to ...
    Posted to Construction Advice (Forum) by masonpj on March 4, 2008
  • Simple password validation that is confusing me.

    Greetings - 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: Language: Java Problem: A valid password is a minimum of eight characters and a maximum of sixteen. It contatins at ...
    Posted to Construction Advice (Forum) by Noiroi on July 12, 2007
  • Replace bgcolor attributes with a style in any html tag

    Hi guys,   Sure this is probobly simple but my head just can't get around this issues... I'm trying to parse the HTML to start replacing/removing problem tags to meet W3C AA compliance and various other requirements. The first one i'm working on is removing the 'bgcolor' attribute of any table/tr/td tag. But using the ...
    Posted to Construction Advice (Forum) by PommyTom on July 4, 2007
  • letters, numbers and spaces only

    Good Day. I am using the following code to validate data on a HTML page function checkTermMoYr (strng) {  var error = "";  if (strng == "") {     error = "You didn't enter a Loan Term.\n";  } //var illegalChars = /\W/; var illegalChars = \s;   // allow only letters, numbers, ...
    Posted to Construction Advice (Forum) by ahbenshaut on January 26, 2007
  • parseing string with optional match question

    Hello. I'm trying to write a regular expressin that will parse filenames for prefix, revision, page, and extension. This is what I have so far.  /^(.*)_(\d*).*__(\d*)\.(.*)$/i This works for filenames in this form. 418C_1(SPACER)__2.pdf and pulls out prefix:418C   Rev: 1   Page: 2    File ...
    Posted to Construction Advice (Forum) by tarsier on January 24, 2007
  • PHP Regular Expression - HELP!

    I'm looking to create a regular expression in PHP that does the following.  Keep in mind it is for a registration form where a text field must contain the following: Must be at least 8 characters in length and the field must contain at least 1 number and 1 alphabetic character.  I came up with the solution below but IT DOES NOT WORK ...
    Posted to Construction Advice (Forum) by caseyk on January 19, 2007