I am looking for a short way to capture the first part of a sentence (in complete words) until the 30th character.
Example: "Lorem ipsum dolor sit amet, consectetur adipiscing elit" (55 chars) --> "Lorem ipsum dolor sit amet," (28 chars)
I will use this in Google Sheet, so the solution can be a combination of RegEx and formulas, but it needs to be super concise because it will be applied over a big range of data.

^.*\b(?<=^.{0,30}), check here to see the result. - Hao WuREGEXEXTRACT()from Google Sheet, so I am still stuck with a super long formula for now (namely=if(LEN(REGEXEXTRACT(C$3,"^(?:\S+\s+\n?){1,"&counta(SPLIT(LEFT(C$3,30)," ",true, true))&"}"))<=30,REGEXEXTRACT(C$3,"^(?:\S+\s+\n?){1,"&counta(SPLIT(LEFT(C$3,30)," ",true, true))&"}"),REGEXEXTRACT(C$3,"^(?:\S+\s+\n?){1,"&counta(SPLIT(LEFT(C$3,30)," ",true, true))-1&"}"))) - denisq