Using Regular expressions with replace

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

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
 
Just Me said:
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.
 
Just Me said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top