Forum Academy Marketplace Showcase Pricing Features

Regex pattern for extract part of a string


I am having trouble extracting a part of a string TEXT… Does anybody can help me on what would be the right patter for it?


I have the string “Three little pigs-123” how can I extract all the sentence before the “-” . Three little pigs

Thanks for your help