Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: regular expression search and replace

by ronin78 (Novice)
on Nov 18, 2014 at 17:56 UTC ( [id://1107609]=note: print w/replies, xml ) Need Help??


in reply to regular expression search and replace

As I understand it, you want to capitalize the first letter in each sentence. You could do what you are trying to do above with a capture group (get the match and then uppercase it in your replace). However, you could also split the string into sentences, and then call uppercase on the first letter in the string and lowercase on the remainder.
  • Comment on Re: regular expression search and replace

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1107609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2026-01-19 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (122 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.