Mailinglist Archive: opensuse-autoinstall (56 mails)
| < Previous | Next > |
[opensuse-autoinstall] <match_type>regex</match_type> -- regex support?
- From: Stephen Dowdy <sdowdy@xxxxxxxx>
- Date: Thu, 21 Jan 2010 12:13:21 -0700
- Message-id: <4B58A751.5060807@xxxxxxxx>
I'm wondering *which* regex system is used here and what
the constraints on its use are.
Google: [ autoyast "<match_type>regex</match_type>" ]
And there's precious few examples to work from.
The only official example shows:
<rule>
<board_vendor>
<match>ntel</match>
<match_type>regex</match_type>
</board_vendor>
<result>
<profile>classes/largeswap.xml</profile>
<continue config:type="boolean">true</continue>
<dont_merge config:type="list">
<element>partition</element>
</dont_merge>
</result>
</rule>
and the value in the <match> element doesn't even have any
regex pattern, wildcard, classes, etc.
From this example, all i can infer is that a <match>element value is used as a non-anchored match string.
("match anywhere")
I have seen another example showing the use of the
"^" begin-of-line anchor symbol
e.g. "<match>^SUSE Linux Enterprise Server</match>".
But what is the full-extent of what i can use here?
for my needs right now, i'd like to use
<product>PowerEdge [12]850</product>
to match the Dell PE 1850 and PE 2850 systems. Will this
work? (i imagine i may have to escape some patterns
to fit XML specification, which i'm not very familiar
with, but that's just a detail)
thanks,
--stephen
--
Stephen Dowdy - Systems Administrator - NCAR/RAL
303.497.2869 - sdowdy@xxxxxxxx - http://www.ral.ucar.edu/~sdowdy/
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |