@jaredbusch said in How can I sed or regex this out:
@romo said in How can I sed or regex this out:
@jaredbusch said in How can I sed or regex this out:
****** Object: UserDefinedFunction [dbo].[FiscalMo] Script Date: 11/30/2017 10:24:23 AM ******
sed 's/Script.*M //g'
I need at least one * and the / to close.
So this?
sed 's/Script.*M /\ \*\//g'
You are escaping seds delimiters with that.
Changing the delimiters for better clarity:
sed 's|Script.*M ||g'
From Script to M + space, replace with space,. It keeps all your * and the final /.
0_1512131437191_Screenshot_20171201-062914.png