Jump to content

Recommended Posts

Posted

Hi,

I need to extract dates from a file, where the dates can be formatted in several different ways, including "month first" and "day first" (probably not "year first"). The dates are "randomly" spread out anc contained in blocks of text. I will have indicators in the file as to which formats would actually be most likely, but I will need to be prepared to identify, e.g., 30 April 2014, as well as 30. April 2014, April 30, 2014, 30.04.2014, 30.4.2014, 04/30/14 etc. I think I will be able to do this with a lot of trial-and-error, but I am sure that somebody more proficient than I has already done this.

Is there a good collection of or website for regular expressions for use in AutoIt you would recommend?

Thank you!

Cheers

Autoseek

Posted

Have a look at this site where you can test PCRE regexp and browse in community contributions.

Anyway you're going to have terrible hard time differentiating dd/mm/yyyy and mm/dd/yyyy for dd < 13.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

Thanks! That collection is really interesting. And, yes, I am aware of the challenges, and I will have to evaluate some context information to make that determination.

Cheers

Autoseek

Posted
  On 10/31/2014 at 6:22 PM, AZJIO said:

http://www.regexr.com/v1/

Click the tab "Community"

v2 looks good.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...