无聊之人--除了技术,还是技术,你懂得
分类: Python/Ruby
2011-08-22 20:56:45
7.7. Summary
This is just the tiniest tip of the iceberg of what regular expressions can do. In other words, even though you're completely overwhelmed by them now, believe me, you ain't seen nothing yet
这只是正则表达式所能做事的冰山一角中很小一部分。换句话说,即使你现在完全的掌握了正则表达式,相信我,你也是只是看到其中的一部分。
You should now be familiar with the following techniques:
你需要掌握下面的技术:
Regular expressions are extremely powerful, but they are not the correct solution for every problem. You should learn enough about them to know when they are appropriate, when they will solve your problems, and when they will cause more problems than they solve.
正则表达式是很强大的,但是它并不是所有问题都能解决。你必须清楚的知道何时使用正则表达式,如正则表达式是否能解决你的问题时或是它引起的问题远比它们解决的问题严重。
|
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. |
当有些人面对一个问题时,他们可能会想到:我知道,我要使用正则表达式“。现在他们有两个毛病了。