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 [^<>/]*