如何在忽略返回的同时从较大字符串的开头删除(子字符串)?例如,子字符串可能如下所示:
mysqldump --host="ssh.example.com" --user="jack" --password="3kg%39$(*kdsk#"
较大的字符串将如下所示(注意开头的子字符串和整个过程中的一些返回):
mysqldump --host="ssh.examp
le.com" --user="jack" --password="3
kg%39$(*kdsk#"
-- more stuff that needs to remain --
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Qua tu etiam inprudens
utebare non numquam. Sed haec quidem
如何从较大的字符串中查找并删除子字符串,使结果如下所示:
-- more stuff that needs to remain --
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Qua tu etiam inprudens
utebare non numquam. Sed haec quidem
从开头删除子字符串
旧答案:
希望我能正确理解你的规格。这就是你要问的吗
最新答案:
那样的话,我建议这样做
相关问题 更多 >
编程相关推荐