|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
need to find date in text stringHi All,
I have a text string from which I want to retrieve a date. My string looks like: "01 MAR 06 THIS IS MY FILE.doc" Now I want to search with something like: 99 AAA 99 (for 13 MAR 06) The text string is not always the same, so the date is not always on the left and can also be in the middle or on the right in the text string.... Regards Marco <vonclausow***@gmail.com> wrote in message
news:1141930284.719444.86390@v46g2000cwv.googlegroups.com... You can set a reference to Microsoft VBScript Regular Expressions x.x and > I have a text string from which I want to retrieve a date. > My string looks like: > > "01 MAR 06 THIS IS MY FILE.doc" > > Now I want to search with something like: 99 AAA 99 (for 13 MAR 06) > > The text string is not always the same, so the date is not always on > the left > and can also be in the middle or on the right in the text string.... then use the RegExp class. Here's a great place to get started: http://www.regular-expressions.info/
Rolling the dice on vb6
problem formatting excel in vb VB6 writing to text files requires Close to commit delete tmp files Collection of Radio buttons Function VB6 File Handling Without FSO Using VB to screen scrape a 3270 mainframe Error to create a package in VB6 Close a form object variable or with block variable not set error |
|||||||||||||||||||||||