I'm trying to migrate from Kotiln synthetics to DataBinding.
So I'm trying to replace stuff like input_layout_phone_number with binding.inputLayoutPhoneNumber.
I got the part with replacing input_layout_phone_number with inputLayoutPhoneNumber, but I can only replace each underscore alone.
Also, something like R.string.abc_def gets included under this RegEx I'm using, also KEY_ABC
Find : _(w)
Replace : \U$1
Any idea how I can replace the entire word, and only find the words that do not have a . before them? Maybe also replace the entire word at once
Example :
input_text_field_layout
R.id.input_text_field_layout
TEXT_FIELD_LAYOUT
Expected output :
inputTextFieldLayout
R.id.input_text_field_layout
TEXT_FIELD_LAYOUT
Preferred output :
binding.inputTextFieldLayout
R.id.input_text_field_layout
TEXT_FIELD_LAYOUT
