1.定义:正则表达式是一种基础的模式匹配(pattern-matching)技术。
2.模式:将内部数据在结构上抽象为字符串;
模式指的就是数据结构。
3.匹配: List(“A”,”B”,”C”) match{ case List(“A”,_,”C”) ——> println(“ok”) } ;
匹配指的就是链表匹配。
4.可视化:https://regexper.com/
1.
正则表达式
原文:https://www.cnblogs.com/ytdyz/p/12670948.html