1 Replies Last post: Oct 17, 2013 2:01 AM by Andriy Bazanov  
Neil Young Newbie 1 posts since
Oct 17, 2013
Currently Being Moderated

Oct 17, 2013 12:31 AM

Regex Replace with uppercase

I'm trying to do a regex search and replace where the replace changes the case of one of the parts.

 

So I have:

foo_bar

foo_baz

 

And I want:

fooBar

fooBaz

 

My search:

(foo)_(.)

 

My replace:

$1$2

 

Is there a way to transform $2 to uppercase during the replace?

 

Thanks,

Neil

Andriy Bazanov Master 3,910 posts since
May 28, 2010
Currently Being Moderated
Oct 17, 2013 2:01 AM in response to: Neil Young
Re: Regex Replace with uppercase

Hi there,

 

Is there a way to transform $2 to uppercase during the replace?

 

http://youtrack.jetbrains.com/issue/IDEA-70451

More Like This

  • Retrieving data ...