473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

regex and dates

Hello,
I'm working on a project that involves parsing dates out of HTML files (text files, for all intents and purposes).

The problem is the date format and placement in the page isn't consistent. I managed to work around this for the first batch of files, but the second batch is in French and has even more formats.
For example
Le 5 Janvier 2006
1er Fevrier 2009
10 Fevrier, 2009
Fevrier 10, 2009

And so on. There are accented characters but I can replace them with their unaccented counterpart.

Efficiency doesn't matter as once all the files have the dates extracted, the program won't be used again.

Any suggestions?
Jun 17 '08 #1
4 1104
Stang02GT
1,208 Expert 1GB
This appears to be an HTML question, so I am going to move this over to the HTML/CSS forum so it will get the proper attention.
Jun 23 '08 #2
Markus
6,050 Expert 4TB
This appears to be an HTML question, so I am going to move this over to the HTML/CSS forum so it will get the proper attention.
Since when could html parse a webpage? ;]
Jun 23 '08 #3
gits
5,390 Expert Mod 4TB
certainly not a HTML/CSS issue ... what language do you want to use/prefer or what should be the output?

kind regards
Jun 23 '08 #4
acoder
16,027 Expert Mod 8TB
Moved back to Misc. Questions until further details provided.

Moderator.
Jun 25 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Vibha Tripathi | last post by:
Hi Folks, I put a Regular Expression question on this list a couple days ago. I would like to rephrase my question as below: In the Python re.sub(regex, replacement, subject)...
5
by: J. J. Cale | last post by:
Little astrology program has 2 text input boxes for birth dates. There are 3 selects for day month year that will supply output to whichever text input had the focus last. If the user picks from...
14
by: jumpstart | last post by:
I need a RegEx to validate INTERNATIONAL PHONE NUMBRES. Thanks, JS
1
by: Bryan Young | last post by:
I want to generate a usable filename (no path, drive letter, or extension) from strings from various sources (dates, database fields, user entry, etc). I'm trying to use the following line and...
9
by: hendedav | last post by:
Gang, I am trying to get a regular expression test to work and can't figure out why. I will give you the code below: for (var j=0; j<document.getElementById('cmbList').options.length; j+...
5
by: shapper | last post by:
Hello, I am trying to create a RegEx which validates dates in the following format: dd/mm/yyyy 27/12/2007, 02/03/2006 d/m/yy 1/4/97, 2/3/06 Basically: - Day can be 1 to 31...
2
by: GS | last post by:
How can one avoid capturing leading empty or blank lines? the data I deal with look like this "will be paid on the dates you specified. xyz supplier amount: $100.52 when: September 07,...
0
by: Pirmin | last post by:
How can I find the matches for bookings that meet the following conditions. A booking always starts with a date. A booking can consist of several lines. Dates can be part of the booking text. ...
2
by: shapper | last post by:
Hello, I am trying to validate a value using Regex. How can I do this with Javascript? Thanks, Miguel
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.