Ask Your Question

Change case of first letter using regular expression [closed]

asked 2017-08-08 06:27:08 +0200

Lila gravatar image

updated 2020-07-19 01:10:07 +0200

Alex Kemp gravatar image

Hello all, I have a question about the replace options in regular expressions. I need to search for the first letters of my paragraphs in my curriculum (built over a long time) that are in lower case and move them to upper case. I put in search


and it works just fine. Unfortunately the only way I found in order to change it to appear upper case was to replace the found adding the "upper case" as effect. Unfortunately this is not actually changing the case, infact it will still find it next time I search for it and simply disapper nex time I remove direct format. Is there a way to actually replace the character case like in other programs? I thought something on the line (Sublime Text) in replace:


Any hope this is already working with a different code or to add this feature? maybe with alternative search and replace (I could not manage to find the beginning lowercase string for it XD)? Thank you for your time reading and sorry if my menu commands sound strange, but I use libre office in italian.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Lila
close date 2017-08-21 17:13:20.937702

2 Answers

Sort by » oldest newest most voted

answered 2017-08-08 06:34:35 +0200

Use your regular expression to find all. Then (when all occurrences are selected) use Format-Text-UPPERCASE.

edit flag offensive delete link more


Thank you, Mike, but unfortunately Format-->text-->uppercase only change the appeareance, at least in 4.4.5 edit: sorry, I did not read your answer properly. Unfortunately replacing all of them in one go was not the option, but again thank you!

Lila gravatar imageLila ( 2017-08-08 06:50:06 +0200 )edit

In 4.4.5 (quite old version!) the relevant menu item is Format-Change Case-UPPERCASE.

I suppose that you misunderstood me as if I meant character formatting dialog. Actually I meant menu item that does actual case replacement.

Mike Kaganski gravatar imageMike Kaganski ( 2017-08-08 08:06:10 +0200 )edit

Yes, sorry for the confusion. Your answer works perfectly if you can change _all_ initials to uperrcase. Unfortunately I had some emails and bullet list items I did not wanted to make uppercase, but lukily I found how to it with alternate search and replace! I should update but some of my script are no longer working on >5 :(

Lila gravatar imageLila ( 2017-08-08 10:06:49 +0200 )edit

I'd advise to try to fix scripts. You may ask for help here on ask forum, if it makes troubles. New versions come not only with new (and possibly useless of course) features, but also with bug fixes.

Mike Kaganski gravatar imageMike Kaganski ( 2017-08-08 10:12:27 +0200 )edit

Also, please make your answer the accepted one, not mine. And close the question, too, to indicate for others that it is solved with accepted solution.

Mike Kaganski gravatar imageMike Kaganski ( 2017-08-08 10:12:53 +0200 )edit

Sorry for the late answer. I cannot accept my own answer (not enough points). But I will try to close the question!

Lila gravatar imageLila ( 2017-08-21 17:10:47 +0200 )edit

answered 2017-08-08 06:55:42 +0200

Lila gravatar image

Fast update: I found how to do this with the Alternate Search and Replace extension (I owe them a LOT!) With Uppercase/lowercase ticked, find:




edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-08-08 06:27:08 +0200

Seen: 5,515 times

Last updated: Aug 08 '17