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

Using Regular expressions with replace

P: n/a
Using the IDE: Replace in Files
Suppose I want to change all words: <something>Form
to new words: Form<something>

Can that be done and if so How?
Thanks
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
" Just Me" <gr****@a-znet.com> schrieb:
Using the IDE: Replace in Files
Suppose I want to change all words: <something>Form
to new words: Form<something>


Your question is not related to the VB.NET programming language. You'll
more likely get an answer in a more general group, for example
microsoft.public.vsnet.general.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

P: n/a

" Just Me" <gr****@a-znet.com> wrote
Using the IDE: Replace in Files
Suppose I want to change all words: <something>Form
to new words: Form<something>

Can that be done and if so How?


The IDE supports macros (Tools > Macros ...)

The macros use standard VB commands, so you could
create your own macro to do that task. To get started
look at a few that ara already supplied by launching the
macro editor.

For executing a command over a whole file see the code
in VSEditor.DoForWholeFile

For an example of iterating through project items, use
the Macro Editor's help system to find the ProjectItem
object in the help file.

What I am suggesting is that you can write your macro to
do what you need. It may take a bit of experimentation,
but it could be done.... ;-)

HTH
LFS
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.