.*? is a "non-greedy" match, meaning it will match shortest possible match, for example if we have sample data:
<PARTICIPATION_TYPE>.*?<\/PARTICIPATION_TYPE>will match <PARTICIPATION_TYPE>BS</PARTICIPATION_TYPE>while <PARTICIPATION_TYPE>.*<\/PARTICIPATION_TYPE>would match<PARTICIPATION_TYPE>BS</PARTICIPATION_TYPE><PARTICIPATION_TYPE>BS</PARTICIPATION_TYPE> $& contains the last match.
We have 2 XML file 1. ORIGINAL.xml file and 2. ATTRIBUTE.xml files, In the ORIGINAL.xml we need some modification as <resourceCode>431048</resourceCode>under <item type="Manufactured"> tag - we need to grab the 431048 value from tag and pass it to database table in unix shell script to find the... (0 Replies)
Hi All,
I have number of xml file like :
______________________________________________________
<?xml version="1.0" standalone="no"?>
<!-- Created by Symology Ltd on 13/02/2012 - USER_BATCH_ID 0011091684 -->
<!-- RECIPIENT_URL: HTTP://194.168.0.81:3408 -->
<EToNrequest
... (7 Replies)
Hi All,
Find the following code:
<Universal>D38x82j1JJ
</Universal>
I want to retrieve the value of <Universal> tag as below:
Please help me. (3 Replies)
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
Hello,
Hope you are doing fine. I have an log file which looks like as follows:
Some junk text1
Date: Thu Mar 15 13:38:46 CDT 2012 DATA SENT SUCCESSFULL:
Some jun text 2
Date: Thu Mar 15 13:38:46 CDT 2012 DATA SENT SUCCESSFULL: ... (3 Replies)
I want to basically do the below thing. Suppose there is a tag called object1. I want to display an output for all similar tag values under heading of Object 1 and the count of the xmls. Please help
File:
<xml><object1>house</object1><object2>child</object2>... (9 Replies)
Hi,
My requirement is something like this,
I have a xml file that contains some tags and nested tags,
<n:tag_name1>
<n:sub_tag1>val1</n:sub_tag1>
<n:sub_tag2>val2</n:sub_tag2>
</n:tag_name1>
<n:tag_name2>
<n:sub_tag1>value</n:sub_tag1>
... (6 Replies)
Below is the content in my XML file
<name>XXX</name>
<eventType>Uptime</eventType>
<eventType>Delay</eventType>
<eventType>Delay</eventType>
<name>YYY</name>
<eventType>Uptime</eventType>
<eventType>Delay</eventType>
... (12 Replies)
Hi Forum.
I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script.
Any feedback will be greatly appreciated.
... (19 Replies)
I want to write a one line script that outputs the result of multiple xml tags from a XML file. For example I have a XML file which has below XML tags in the file:
<EMAIL>***</EMAIL>
<CUSTOMER_ID>****</CUSTOMER_ID>
<BRANDID>***</BRANDID>
Now I want to grep the values of all these specified... (1 Reply)
Discussion started by: shubh752
1 Replies
LEARN ABOUT DEBIAN
matcheditor
MatchEditor(3I) InterViews Reference Manual MatchEditor(3I)NAME
MatchEditor - StringEditor with pattern matching
SYNOPSIS
#include <InterViews/matcheditor.h>
DESCRIPTION
MatchEditor is a StringEditor subclass that checks the validity of its contents against a specified pattern. It is suitable for entering
strings that must conform to a particular format such as a number or a file name. The matching pattern is specified according to the rules
of scanf(3). For example, a pattern of "%3d" will match a 3-digit integer, a pattern of "%[ab]" will match a string containing only a's
and b's, and a pattern of "(%f, %f)" will match the string "(12.0, 5E23)".
PUBLIC OPERATIONS
MatchEditor(ButtonState*, const char* sample, const char* done)
Create a new MatchEditor object. The ButtonState, sample string, and termination string are passed to the StringEditor constructor.
void Match(const char* pattern, boolean keystroke = true)
Specify the pattern to match against. When MatchEditor performs matching, it will highlight any trailing part of the edit string
that does not conform to pattern. The user can then correct the string. If keystroke is true, matching will occur on every key-
stroke; otherwise matching will only occur on the completion of the edit. The initial pattern matches any string, and the initial
value of keystroke is true.
RESTRICTIONS
MatchEditor uses sscanf internally to check the pattern match. Different versions of sscanf have different scanning capabilities; check
with your local version to see what patterns you can use.
SEE ALSO StringEditor(3I)InterViews 7 Dec 1989 MatchEditor(3I)