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


Something like -{4,}?

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

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

3

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