Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / February 2006

Tip: Looking for answers? Try searching our database.

regular expressions help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
YisMan - 28 Feb 2006 10:57 GMT
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
Signature

Thankfully, YisMan

John Nurick - 28 Feb 2006 14:54 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.