I use .* as a wildcard match in my regular expression. But how do I
write it if I want to match all characters except the following <>
and /

Re: Regex Wildcard by Leo

Leo
Mon May 12 02:39:24 CDT 2008

try [^<>/]

<per_persson_2008@yahoo.com> wrote in message
news:0ff83cf7-3037-40a6-aa80-4df7d06e1b47@x35g2000hsb.googlegroups.com...
>I use .* as a wildcard match in my regular expression. But how do I
> write it if I want to match all characters except the following <>
> and /


Re: Regex Wildcard by per_persson_2008

per_persson_2008
Mon May 12 03:16:42 CDT 2008

On 12 Maj, 09:39, "Leo Seccia" <lsec...@msn.com> wrote:
> try [^<>/]
>
> <per_persson_2...@yahoo.com> wrote in message
>
> news:0ff83cf7-3037-40a6-aa80-4df7d06e1b47@x35g2000hsb.googlegroups.com...
>
>
>
> >I use .* as a wildcard match in my regular expression. But how do I
> > write it if I want to match all characters except the following <>
> > and /- D=F6lj citerad text -
>
> - Visa citerad text -

Hi, I stil have problems. For example ^.*kalle.*$ matches the
following string a<bckalleabc. If I use the following ^.*[^<>/]kalle.*
$ I get the same result.

Re: Regex Wildcard by Paul

Paul
Mon May 12 03:23:51 CDT 2008

<per_persson_2008@yahoo.com> wrote:

> Hi, I stil have problems. For example ^.*kalle.*$ matches the
> following string a<bckalleabc. If I use the following
> ^.*[^<>/]kalle.*$ I get the same result.

The dot means "any character", and the star means "any number of these",
so you need to replace the dot with [^<>/] and not just stick it in at
random.

^[^<>/]*kalle[^<>/]*$

[^<>/]* means "any number of characters that aren't < > /

Eq.



Re: Regex Wildcard by per_persson_2008

per_persson_2008
Mon May 12 03:40:11 CDT 2008

On 12 Maj, 10:23, "Paul E Collins" <find_my_real_addr...@CL4.org>
wrote:
> <per_persson_2...@yahoo.com> wrote:
> > Hi, I stil have problems. For example ^.*kalle.*$ matches the
> > following string a<bckalleabc. If I use the following
> > ^.*[^<>/]kalle.*$ I get the same result.
>
> The dot means "any character", and the star means "any number of these",
> so you need to replace the dot with [^<>/] =A0and not just stick it in at
> random.
>
> ^[^<>/]*kalle[^<>/]*$
>
> [^<>/]* means "any number of characters that aren't < > /
>
> Eq.

Thanks for the answer. Yes it works if I replace . with [^<>/]*

Re: Regex Wildcard by DSK

DSK
Mon May 12 08:40:20 CDT 2008

Dude ..

Try searching at regexlib.com. this is the first place for every and any
regular expressions. This is a place where you can both learn as well as use
expressions by others.

HTH

<per_persson_2008@yahoo.com> wrote in message
news:0ff83cf7-3037-40a6-aa80-4df7d06e1b47@x35g2000hsb.googlegroups.com...
>I use .* as a wildcard match in my regular expression. But how do I
> write it if I want to match all characters except the following <>
> and /