Ditutup

Simple Java Regular Expression Validating Dates

I need a regular expression that works for the following date formats (pretty much all some logical formats I can think of):

09-03-2011

9-3-2011

9-3-11

09-3-11

9-03-11

2011-9-3

2011-09-03

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

2011.9.3

[url removed, login to view]

09/03/2011

9/3/2011

9/3/11

09/3/11

9/03/11

2011/9/3

2011/09/03

September 3, 2011

September 3rd, 2011

Sept 3, 2011

I would rather let a date slide by that isnt perfect than reject one that shouldnt be rejected. I am parsing youtube video titles/descriptions for concert dates to ensure they contain the correct date. For the months, just a the shortened version and the long version of the month name will work. You will have the java date object (which you will be able to get the month, date, year out of) and need to create a regular expression on the fly. Either that, or one big (or a few) regular expression that matches any valid date (in the above formats) would work.

So, in summary:
Input: Date Object and String
Output: True/False: Does string contain date in any of the above formats (return True if so, False if not)?

Kemahiran: Java, Javascript

Lihat lebih lanjut: regular expression no, regular expression in c, regular expression c, regular expression a, regular expression 0, java matches regular expression, regular, Expression, java parsing, create java object, regular video, year regular expression, regular create, regular youtube, simple java work, javascript fly, parsing java, create simple youtube video, regular expression year, validating, simple date javascript, youtube descriptions titles, java months, javascript regular expression, create youtube titles

Tentang Majikan:
( 0 ulasan ) Cincinnati, United States

ID Projek: #4056827

26 pekerja bebas membida secara purata $53 untuk pekerjaan ini

dobreiiita

Hi, I am JAVA expert and can surely help you here, Thank You

$50 USD dalam sehari
(187 Ulasan)
6.5
samitXI

i am interested and fit your requirement . i am honest, dedicated,self-motivated, result oriented and time bound person. i deliver what you need.

$30 USD dalam sehari
(84 Ulasan)
6.3
ragaRocks

please check PM

$30 USD dalam sehari
(5 Ulasan)
5.2
poornachand

I can do this.

$30 USD dalam 2 hari
(28 Ulasan)
5.2
nani01029x

Let me help you. Please check your pm for more details.

$30 USD dalam sehari
(51 Ulasan)
5.2
vahid4m

i can do this for you.

$30 USD dalam 0 hari
(15 Ulasan)
4.2
oanagoge

This sounds very easy. I can get it done in less than a day. I have plenty of experience with regular expressions from my computer science degree.

$30 USD dalam 0 hari
(10 Ulasan)
4.0
jal540

I have excellent ratings and experience with Java regular expressions.

$50 USD dalam 4 hari
(2 Ulasan)
3.9
duchuyctlk

Expert here. Check your pmb

$50 USD dalam 2 hari
(21 Ulasan)
3.8
smhumayun

I'm interested.

$30 USD dalam sehari
(4 Ulasan)
3.8
hbxfnzwpf

That would be easy for me, I can do it in several hours, i am ready for it.

$35 USD dalam sehari
(9 Ulasan)
3.7
zenithraysinfo

Hi, I am ready to start. I am waiting for your positive reply. Thanks.

$60 USD dalam 2 hari
(10 Ulasan)
3.6
eried

Hi, I can do your regex

$30 USD dalam 5 hari
(6 Ulasan)
3.5
novaemp

Hi~, It's interested for me. I can do it. Please check PMB. Thank you.

$30 USD dalam sehari
(3 Ulasan)
3.4
MattGofStP

Hi, I have written several programs that depend upon RegEx's to do data extraction. This is a very simple project, and I would be happy to complete it for you. Please see the sample program in PM box.

$30 USD dalam 0 hari
(2 Ulasan)
2.4
hoangtriTA

Hi sir. I am ready to help you. Please check your PM.

$35 USD dalam sehari
(1 Ulasan)
2.3
atopcoder

Hire me, I've a lot of experience in Java and RegEx I can send you a good solution with cheapest price and within short time limit, with a good level of quality.

$30 USD dalam 0 hari
(2 Ulasan)
1.8
peterlopen

Hi, it will be funny exercise to do. I'm ready.

$30 USD dalam 2 hari
(1 Ulasan)
1.5
wjx823

This sounds very easy. I can it quickly.

$30 USD dalam 0 hari
(0 Ulasan)
0.0
GauravMalik86

Work 5 years as a Software Developer. Familiar with Enterprise technologies (Different Application Servers) and many programming languages. Technical Skills: Programming Languages ( 5 years ) Agile Method Lagi

$40 USD dalam 2 hari
(0 Ulasan)
0.0