I’m retrieving a list of texts that looks like this:
long paragraph
long paragraph
long paragraph
And saving them to my database. But I’d like to remove the numbers at the beginning of each item.
Is there an operator similar to the :trimmed operator (which removes the spaces at the beginning and end of the text. For example, ’ fd ’ becomes ‘fd.’) that can remove the first n characters from a text?
Thanks! Using just the split by '. ' ended up splitting up my paragraphs too, since some of them have periods in them. But I used split by (1. ):split by (2. ):split by (3. )etc. and it worked alright
you can use find & replace with “use regex pattern” checked and nothing for replace.
replace n char at beginning of line: ^[\s\S]{n}
remove numbered list like in your case: ^\d+\.\s*
they both work only for the beginning of the string, so it will not change anything else in the middle.