[Solved] How can I use regex to fix a string like “——–ab-c” to just “ab-c”? [closed]

[ad_1]

Something like -{4,}?

a{3,} Matches at least 3 consecutive a characters.

Example: https://regex101.com/r/LmRMB2/1/

3

[ad_2]

solved How can I use regex to fix a string like “——–ab-c” to just “ab-c”? [closed]