有用的正则表达式教程 [英] Useful regular expression tutorial

查看:12
本文介绍了有用的正则表达式教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有关于使用正则表达式的好教程,尤其是 grep?我尝试在谷歌上搜索一些,但大多数教程都过于基础,涵盖了我已经知道的内容.

Is there a good tutorial on using regular expressions, especially with grep? I tried googling for some, but most tutorials are too basic and cover things I already know.

推荐答案

Regular-expressions.info有一个教程部分.该站点对一般的正则表达式非常全面,但重点是对脚本和编程语言的支持.

Regular-expressions.info has a tutorial section. This site is pretty comprehensive for regular expressions in general, although the emphasis is on support in scripting and programming languages.

J.Friedl 关于掌握正则表达式的书(在别处提到过)绝对是一本出色的资源,如果您认真地按照标题所说的去做,那么必不可少的阅读.

The J. Friedl book on mastering regular expressions (mentioned elsewhere), is definitely an outstanding resource, and essential reading if you are serious about doing what the title says.

任何经常使用正则表达式或作为工作一部分的人,最好拿起这本书.在 regex-land 中,浏览教程并不真正有助于熟练.

Anyone who uses regular expressions routinely, or as part of their job, would do well to pick up the book. Browsing around for tutorials is not really conducive to proficiency, in regex-land.

这篇关于有用的正则表达式教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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