i want refactor variables names.
variable_foo
to
variableFoo
Is it possible to do this using find/replace tool of eclipse??
edit:
My problem isn’t only replace ‘_’, but edit the next letter to upper case.
Its possible using regex??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
These links
seem to indicate that Perl and/or PHP Regex syntax supports a \u operator that upper-cases the match following it in the replacement expression – and I think I interpret it to be a holdover from ‘vi‘ (UNIX text editor) – no clue as to why it doesn’t seem to exist in a more modern and popular regex implementation
So, if you can get your code onto a system that supports an appropriate version of vi (or an editor that fully supports this perl syntax), and then figure out how to open your documents in it, how to run a find-replace, etc.. then you’d have to use an expression like the following:
or