XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Fairy LeeSubject: 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?

Postnext
Fairy LeeSubject: 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?

Posttop
Tony LavinioSubject: 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?

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.