1

有没有比“正则表达式” 更简单直观的匹配技术?

 2 years ago
source link: https://www.v2ex.com/t/795888
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

有没有比“正则表达式” 更简单直观的匹配技术?

  James369 · 4 小时 42 分钟前 · 1324 次点击
正则表达式:是很强大但感觉还是稍微复杂了一点,并且可读性也有点差。

我现在有个小需求:
1. 能够匹配一行字符(就一行不超过 100 个字符,能够匹配内部的英文数字符号等各种字符)。
2. 简单直观易上手(也就是说新手小白看 5 分钟就可以上手自己编写规则)。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK