I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of the string. I am
using yesterday's date to find all of my data from yesterday.
Yesterday's date is 20070731, and assigned to the variable
yesterday_date. I want to loop thru a
On 2007-08-02, at 13:43, [EMAIL PROTECTED] wrote:
I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of the string. I am
using yesterday's date to find all of my data from yesterday.
Yesterday's date is 20070731, and assigned to
...
Yesterday's date is 20070731, and assigned to the variable
yesterday_date. I want to loop thru a directory and find all of the
yesterday's data ONLY IF the feature class has the date at the
BEGINNING of the filename.
...
I can't figure out the
syntax of inserting the ^ into the regex.
[EMAIL PROTECTED] wrote:
I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of the string.
You're coming from a Perl background, right? No-one else would
think of using a regexp for such a simple thing. There are two
things you need
[EMAIL PROTECTED] wrote:
I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of the string. I am
using yesterday's date to find all of my data from yesterday.
Yesterday's date is 20070731, and assigned to the variable
[when replying to a mailing list or newsgroup response please make sure
you include the list as a recipient, so the whole conversation is available]
André Martins wrote:
I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of
I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of the string. I am
using yesterday's date to find all of my data from yesterday.
Yesterday's date is 20070731, and assigned to the variable
yesterday_date. I want to loop thru a