-4

SO i got regex to make first letter capital but i need now a regex to make the last letter caps, ive tried google searches and came up with nothing

Example of what im talking about

razor123

james333

firefire32923932

laser

Need them to turn into

razoR123

jameS333

firefirE32923932

laseR
Avinash Raj
  • 172,303
  • 28
  • 230
  • 274
ramza77
  • 11
  • 1

1 Answers1

1

Try this:

Find: ^([a-z]+)([a-z][^a-z]*)$ Replace with: \1\U\2

Nick
  • 138,499
  • 22
  • 57
  • 95