thank you all in this wonderful group.
a special thanks for introducing me to the wonderful world of regular
expressions
can anybody tell me how to use a simple wildcard in regex?
example myregex.pattern= "hello*goodbye" does not seem to work
It depends what you want the pattern to match. As a regex,
hello*goodbye
will match any string that contains "hell" followed by "goodbye", with any
number of "o"s between them, e.g.
hellgoodbye
hellogoodbye
helloooooooooooooooooooooooogoodbye
.
If you want to match any string that begins with "hello" and ends with
"goodbye", use
^hello.*goodbye$
And read the documentation!
> thank you all in this wonderful group.
> a special thanks for introducing me to the wonderful world of regular
[quoted text clipped - 3 lines]
>
> example myregex.pattern= "hello*goodbye" does not seem to work
YisMan - 28 Feb 2006 16:22 GMT
thanks a million, john.
by the way i tried visiting j.nurick (as you wrote you have collected info
onsite)
but i get a message to come back in a couple of days?

Signature
Thankfully, YisMan
> It depends what you want the pattern to match. As a regex,
> hello*goodbye
[quoted text clipped - 17 lines]
> >
> > example myregex.pattern= "hello*goodbye" does not seem to work
John Nurick - 28 Feb 2006 16:38 GMT
This works:
http://www.j.nurick.dial.pipex.com/Code/
> thanks a million, john.
> by the way i tried visiting j.nurick (as you wrote you have collected info
[quoted text clipped - 23 lines]
>> >
>> > example myregex.pattern= "hello*goodbye" does not seem to work