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



On Nov 12, 10:30 am, "Academia" <academiaNOS...@xxxxxxxxxx> wrote:
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]" <M...@xxxxxxxxxxx> wrote in messagenews: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" <academiaNOS...@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

It's certainly not the Regex I'm used too. In researched for your
solution, I realized things like excluding prefix/suffice matches
simply give a "No Matches Found" message.

I'm curious however, why do you need to capitalize your variable
names?

Thanks,

Seth Rowe

.



Relevant Pages

  • Re: How to change the first character of Dim variable names to upper case
    ... I just don't know how to upper case the replacement group. ... Doing somethings in RegEx is differsnt than doing it in the IDE? ... I realized things like excluding prefix/suffice matches ... sometimes I mistakenly use upper case so I'd like to fix all those mistakes ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to change the first character of Dim variable names to upper case
    ... I just don't know how to upper case the replacement group. ... Doing somethings in RegEx is differsnt than doing it in the IDE? ... I realized things like excluding prefix/suffice matches ... sometimes I mistakenly use upper case so I'd like to fix all those mistakes ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to change the first character of Dim variable names to upper case
    ... I just don't know how to upper case the replacement group. ... Doing somethings in RegEx is differsnt than doing it in the IDE? ... I realized things like excluding prefix/suffice matches ...
    (microsoft.public.dotnet.languages.vb)
  • Regex for password policy
    ... how can I merge these requirements into one regex? ... string shall at least have 8 chars ... at least one upper case letter should be contained ...
    (comp.lang.java.programmer)