在perl中查找并替换 [英] find and replace in perl

查看:115
本文介绍了在perl中查找并替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Perl的新手,我的第一个项目是查找并替换XML文件中的特定标记.例如,我想找到所有< id>并替换该< id>的序列号.谢谢....

Hi, I am newer in Perl and my first project is find and replace a particular tag in XML file. for example i want to find all <id> and replace in sequence numbers for that <id>. Thank you ....

推荐答案

链接-[搜索并用perl单线替换许多文件] [ ^ ]可能会为您提供帮助.
This link-[Search and replace across many files with a perl one-liner][^] might help you.


看看这个:

这篇关于在perl中查找并替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆