Forum Academy Marketplace Showcase Pricing Features

How to discard the last sentence if it's incomplete

How to discard the last sentence from a text if it’s incomplete (i.e. doesn’t end with a full stop, exclamation mark, etc.)?

Probably can do it using regex but I’m a total idiot when it comes to regex.

Any other simpler way? Thanks.

You can use the command “ truncated-from-end-to” to analyze the last letters…

https://manual.bubble.io/core-resources/data/operations-and-comparisons#truncated-from-end-to

1 Like