mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-21 08:23:45 +00:00
17 lines
315 B
Java
17 lines
315 B
Java
/foobar/
|
|
/fo[o](?=bar)/
|
|
/\/\\\[\]/
|
|
/(fo|o?)+b*ar?/
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["regex", "/foobar/"],
|
|
["regex", "/fo[o](?=bar)/"],
|
|
["regex", "/\\/\\\\\\[\\]/"],
|
|
["regex", "/(fo|o?)+b*ar?/"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for regexes. |