Re: How to change the first character of Dim variable names to upper case



If I use the classic replace I'll have to do it 26 times. I was hoping that
the Regular Expression could do it with one search.
I just don't know how to upper case the replacement group.






"Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx> wrote in message
news:uIyzHMPJIHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
in the ide`s find and replace dialog , there is the option to use Regex ,
although in my opinion it is a bit overkill for what you want to acomplish
a simple "clasic" find and replace will probably do the job much faster
and easier

also note that the dialect used in the IDE is slightly different :-(


Do you mean the IDE dialect is different from RegEx?
Doing somethings in RegEx is differsnt than doing it in the IDE?

Thanks


http://www.codinghorror.com/blog/archives/000633.html

regards

Michel



"Academia" <academiaNOSPAM@xxxxxxxxxx> schreef in bericht
news:OOHBrBOJIHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
I want to search for Dim [a-z] and replace it with Dim [A-Z]

That is, I want to change the first character of Dim variable names to
upper case.

I can't figure know to use Regular Expression to do that.

Is it possible?


Thanks





.



Relevant Pages

  • Re: how to use regular expressions in VS2008
    ... using regular expression in IDE of VC2008 to this type of code ... template BoostWriteFunction; ... If you are looking to deal with regex in dot.net I would suggest you go to http://www.ultrapico.com/ and get Expresso. ... It is free and has an IDE for generating regex. ...
    (microsoft.public.vstudio.general)
  • Re: Regular Expressions question
    ... it's work in the Expresso tool but not in the VS2003 IDE find ... maybe the VS2003 IDE doesn't support this regular expression? ... Use the Replace method on the above regex and replace with: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: As I can determining if string can be turned to a numerico value?
    ... I tend to do most of my work in Perl, so regex and parsing is second nature, ... the scripts are small and the speed of execution is usually ... > Denis Dougall wrote: ... > check which is many times quicker than a regular expression. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Regular expressions
    ... if you are looking for Regular Expression help check out: ... RegEx Tutorial for VB: ... Sign the petition to Microsoft. ... >> newsgroups devoted exclusively to .NET programming. ...
    (microsoft.public.vb.syntax)
  • Re: Page.Invalid
    ... The regular expression validator compares the contents of your textbox against a regular expression (regex) If you haven't typed in the regular expression the validator is always going to return true. ...
    (microsoft.public.dotnet.framework.aspnet)