Subject:How to set pattern match on the third emelement of one row? Author:Fairy Lee Date:05 Feb 2009 03:20 PM
I have one row that has three elements, for example, first name, middle name, last name. I want to set the pattern match on the 3rd element- last name. How to set it?
Subject:How to set pattern match on the third emelement of one row? Author:Fairy Lee Date:05 Feb 2009 04:36 PM
The previous example is not clear.
The following is my problem:
I have a XML file. There are four type records. I need to use the column 5 to distinguish the record. I name this flag as RECORD_TYPE. If it is 0, it is Header; if it is 2, it is trailer; like that. How to do it using pattern match?
Subject:How to set pattern match on the third emelement of one row? Author:Tony Lavinio Date:05 Feb 2009 11:10 PM
If the character to match is in the fifth column, the simplest
way to match it is with this: ^....0 or ^....2
The dots match any character. The carat matches the start of
the record.
Look up "regular expressions" in almost any reference for
details.
>The previous example is not
>clear.
>The following is my problem:
>I have a XML file. There are
>four type records. I need to
>use the column 5 to
>distinguish the record. I name
>this flag as RECORD_TYPE. If
>it is 0, it is Header; if it
>is 2, it is trailer; like
>that. How to do it using
>pattern match?