Mailinglist Archive: opensuse-autoinstall (56 mails)
| < Previous | Next > |
Re: [opensuse-autoinstall] <match_type>regex</match_type> -- regex support?
- From: Uwe Gansert <ug@xxxxxxx>
- Date: Fri, 22 Jan 2010 09:31:57 +0100
- Message-id: <201001220931.57556.ug@xxxxxxx>
on Thursday 21 January 2010 Stephen Dowdy wrote:
it's a simple bash "=~"
if [[ "uwe gansert" =~ u.e\ g[abc]ns ]]; then echo jo; fi
but while looking at the code a few minutes ago, I noticed a bug in it :(
Currently only substring matching seems to work properly which is what I used
for testing the code when I implemented it :-/
I have to test that but by looking at the code, it looks like a bug
--
ciao, Uwe Gansert
Uwe Gansert
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Business: http://www.suse.de/~ug
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
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?
it's a simple bash "=~"
if [[ "uwe gansert" =~ u.e\ g[abc]ns ]]; then echo jo; fi
but while looking at the code a few minutes ago, I noticed a bug in it :(
Currently only substring matching seems to work properly which is what I used
for testing the code when I implemented it :-/
I have to test that but by looking at the code, it looks like a bug
--
ciao, Uwe Gansert
Uwe Gansert
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Business: http://www.suse.de/~ug
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |