Substitute alt attribute with title attribute using sed
I have a PCRE regex that looks like this
s/(<input.+?)alt(=".+?".*?>)/$1title$2/
Can anybody help me with making that work on sed?
Eventually can anybody point me to some guide/bl开发者_StackOverflow社区og post/whatever that explains differences between sed regex and PCRE?
I think it's something like this:
's/\(\<input[^>]\+\?\)alt\(=[^>]\+\?>\)/\1title\2/g'
And this is a good site for understanding sed.
精彩评论