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

A

Academia

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
 
M

Michel Posseth [MCP]

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 :-(

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

regards

Michel
 
A

Academia

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 said:
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 said:
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
 
R

rowe_newsgroups

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 said:
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

Academia said:
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
 
A

Academia

rowe_newsgroups said:
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.

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

"Academia" <[email protected]> schreef in bericht
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?

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


Actually I mis-spoke.

I really like to have those variable names start with lower case but
sometimes I mistakenly use upper case so I'd like to fix all those mistakes
in an app with many files.

thanks
 
R

rowe_newsgroups

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.
message
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" <[email protected]> schreef in bericht
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?

Seth Rowe

Actually I mis-spoke.

I really like to have those variable names start with lower case but
sometimes I mistakenly use upper case so I'd like to fix all those mistakes
in an app with many files.

thanks

Ah, that makes better sense.

Personally, I would do a standard search for "Dim " and just keep
clicking enter until you find one that needs changed. Regex would have
been easier, but without the excluded suffix matching (which would
allow you search for a string, but only replace the beginning of it) I
don't know how you could get it to work.

Thanks,

Seth Rowe
 
A

Academia

rowe_newsgroups said:
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.
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?

"Academia" <[email protected]> schreef in bericht
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?

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?

Seth Rowe

Actually I mis-spoke.

I really like to have those variable names start with lower case but
sometimes I mistakenly use upper case so I'd like to fix all those
mistakes
in an app with many files.

thanks

Ah, that makes better sense.

Personally, I would do a standard search for "Dim " and just keep
clicking enter until you find one that needs changed. Regex would have
been easier, but without the excluded suffix matching (which would
allow you search for a string, but only replace the beginning of it) I
don't know how you could get it to work.

Thanks,

Seth Rowe

Thank you
 

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

Top