So I want to match all below then remove those lines of string.
[MTT-5634](https://my.atlassian.net/browse/MTT-5634) [MCC-123](https://my.atlassian.net/browse/MCC-123) [MTT-7965]: https://my.atlassian.net/browse/MTT-7965 https://my.atlassian.net/browse/MTT-7965
I have tried
sed -e 's/\[(MTT|MCC)-[0-9]{3,4}\?]\?://g;s!.\?http[s]\?://\S*!!g' input.txt > output.txt
MCC-
and apparently can have a variable list of numbers, but what else? And do you want to delete the line or keep it as an empty line?