{“url”:"http://www.xxx.com/a/b/x/", "title":"hello world", "type":" c/python/perl ", "content":"Just use sed"}
如果只使用sed,将加粗内容中的 '/'替换成$,改怎么办?
后向引用还有机会继续操作吗?比如
sed 's/type\":\"(.*)\",\"content/\1/'
如何在sed里面操作这个后向引用\1呢?
{“url”:"http://www.xxx.com/a/b/x/", "title":"hello world", "type":" c/python/perl ", "content":"Just use sed"}
如果只使用sed,将加粗内容中的 '/'替换成$,改怎么办?
后向引用还有机会继续操作吗?比如
sed 's/type\":\"(.*)\",\"content/\1/'
如何在sed里面操作这个后向引用\1呢?