digit « number « Java Regex Q&A

Home
Java Regex Q&A
1.Development
2.find
3.group
4.Match
5.matcher
6.number
7.Operation
8.parse
9.Pattern
10.replace
11.validation
12.word
Java Regex Q&A » number » digit 

1. Java + regex how to check such a string "LOAD_filesourceB-01012008_000058.dat" for type and number(last 6 digits)    stackoverflow.com

how to implement such a requirement via regexp? I have a list of filenames as String's.
LOAD_filesourceA-01012008-00001.dat
LOAD_filesourceB-01012008-00001.dat
LOAD_filesourceB-01012008-00003.dat
LOAD_filesourceA-01012008-00004.dat
LOAD_filesourceA-01012008-000055.dat
LOAD_filesourceB-01012008_000055.dat
...
LOAD_filesourceB-01012008_000058.dat
etc after loading each file, that file gets moved ...

2. Java regex - How to read numbers only 5 to 7 digits    stackoverflow.com

I have following now.

regex=^[0-9]{6}$
this is working for starting 0 to 9 and for 6 and 7 digit number. Please suggest how can i add for 5, 6 and 7 digit numbers. ...

3. RegEx to check if the digits in a number are all the same or in sequence    stackoverflow.com

I want to check if the user's input in the server side. If the user enters a number 111111 or 22222 which has the same numbers, and also if the input is in ...

4. Regular expression to check if string has certain number of digits    stackoverflow.com

I have address information and some junk in my DB and I have to just check if the string has zip code I need to process that. Can you explain how ...

5. Check if a number contains all same digits using regular expression    coderanch.com

Hi, I have a requirement to validate a field. The field should be numeric, should not contain all the same digits (like 555555, 111111) and the length is 6 chars. I need a regular expression to check this. I used [1-9] to check if it's numeric. Now I need to know how can I check if it contains all same digits. ...

6. Regex to Capture 6-Digit Numbers    forums.oracle.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.