Question

Regex code to capitalize the first letter of each sentence

  • 16 November 2022
  • 0 replies
  • 96 views

Looking for a way to achieve the following effect.

I have a Zap that converts voicenote transcripts into markdown text. The text it produces currently looks something like this:

## heading
- first dot point
- second dot point
- third dot point

The notes can be varying lengths, and it’s possible there are errors that occasionally creep in and it doesn’t look quite this neat.

I’d like a step to capitalise the first letter on each line (the one immediately following ## or -), so that it looks like this instead:

## Heading
- First dot point
- Second dot point
- Third dot point

I’m assuming I need to use a Code step including regex, but this is starting to stretch my capabilities and can’t find a clear way to do it.

Appreciate any help that can be provided!


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.