By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Replace with wildcards

P: n/a
I have a dumb question, but cannot find an answer:

I've got a string like
-"The day is Oct 2004 and it is nice outside"
-"Today is Nov 2003 and I am hungry"
-"The day is Jan 1999"

How can I do a Replace on this using a wildcard to match "Oct 2004" or
"Nov 2003" , i.e. the pattern: [??? ####]

Thanks!

Mark

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
mark wrote:
I have a dumb question, but cannot find an answer:

I've got a string like
-"The day is Oct 2004 and it is nice outside"
-"Today is Nov 2003 and I am hungry"
-"The day is Jan 1999"

How can I do a Replace on this using a wildcard to match "Oct 2004" or "Nov 2003" , i.e. the pattern: [??? ####]

Thanks!

Mark


Perhaps something like:

http://groups-beta.google.com/group/...c2ba81114e9817

can be used to update strings using Regular Expressions.

James A. Fortune

Visual Studio has probably reinvented itself more times than Madonna
:-).

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.