Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Jarrod13
  • Content: Threads
  • Order by date
  1. Jarrod13

    Leading zeros in currency check

    I'm trying to modify the following regular expression so that leading zeros will fail the check. if(Currency !~ /^((|-)[0-9]+\.[0-9][0-9])$/ && Currency !~ "^[ \t]*$") For example, if I input 00000500.25 This will pass the regex, I would like that to fail. The following should pass...
  2. Jarrod13

    Space after zip code

    I'm trying to modify this regular expression so that a zip code with a space directly after it will pass. That is, if I have a zip code "45887 " It will not be added to the "BadZipCount array" I've highlighted in blue what I have now. It will check for a space before and after the zip code...
  3. Jarrod13

    Checking for spaces in fields with Regular Expression

    Hi, I need help writing a regular expression to check for anything >= to 1 space. That is, if my record seperator is a "|" if I have a field that is | | or | | or | | I want the regular expression to be able to check for that. Thanks for the help
  4. Jarrod13

    Change Current Directory

    I'm trying to use the system command to change the current directory: My root directory is c:\qa1.0, When I run the following code I'm setting the DIRECTORY variable to "c:\qa1.0\Pass" The system command is not recognizing the DIRECTORY variable. print("Please enter the directory you wish...
  5. Jarrod13

    Help with traversing records in an AWK .exe

    Okay, I'm having a problem with an awk program I'm working on. What I'm doing is checking the entire file for a hex non printable character. This is how I do it: for(f = 0; f <= NR; f++){ if (match($0, /\x1B/) != 0) { NON_PRINT_CHAR = 1...

Part and Inventory Search

Back
Top