W
Werner Lemberg
Folks,
consider this input:
foo ... foo ... bar
where `...' doesn't contain the word `foo'. How can I write a regular
expression which matches `foo ... bar' but not `foo ... foo ... bar'? Were
it a single character as in
f ... f ... bar
I could write
/f[^f]*bar/
but how can I do something similar for a word? In other words, I search an
extension of the [^.] concept which covers a sequence of characters.
I've looked into both the `perlre' and `perlretut' manual pages (of perl
5.10.0), but it contains relevant to this problem.
Werner
consider this input:
foo ... foo ... bar
where `...' doesn't contain the word `foo'. How can I write a regular
expression which matches `foo ... bar' but not `foo ... foo ... bar'? Were
it a single character as in
f ... f ... bar
I could write
/f[^f]*bar/
but how can I do something similar for a word? In other words, I search an
extension of the [^.] concept which covers a sequence of characters.
I've looked into both the `perlre' and `perlretut' manual pages (of perl
5.10.0), but it contains relevant to this problem.
Werner