正则表达式和三剑客
正则表达式和三剑客 什么是正则表达式 正则表达式就是为了处理大量的字符串而定义的一套规则和方法。 通过定义的这些特殊符号的辅助,系统管理员就可以快速过滤,替换或输出需要的字符串。 Linux 正则表达式一般以行为单位处理的。 如何用正则表达式 通常Linux运维工作,都是面临大量带有字符串的内容,如 配置文件 程序代码 命令输出结果 日志文...
正则表达式和三剑客 什么是正则表达式 正则表达式就是为了处理大量的字符串而定义的一套规则和方法。 通过定义的这些特殊符号的辅助,系统管理员就可以快速过滤,替换或输出需要的字符串。 Linux 正则表达式一般以行为单位处理的。 如何用正则表达式 通常Linux运维工作,都是面临大量带有字符串的内容,如 配置文件 程序代码 命令输出结果 日志文...
Carriage Return (Mac pre-OS X) CR \r ASCII code 13 Line Feed (Linux, Mac OS X) LF \n ASCII code 10 Carriage Return and Line Feed (Windows) CRLF \r\n ASCII code 13 and then ASCII code 10 If you s...
两个文档指路: Zsh https://www.zsh.org/ On my zsh https://ohmyz.sh/ 我用的 Ubuntu 安装 Zsh # update package sources sudo apt update && sudo apt upgrade -y # install zsh git cu...
IntelliJ IDEA INSTALLATION INSTRUCTIONS =============================================================================== 1. Unpack the IntelliJ IDEA distribution archive that you downloaded ...
Spring Framework Spring Core IoC, AOP Spring Data Access Transactions, Spring MyBatis Web Servlet Spring MVC Integration ...
Q: 什么是长连接呢? 客户端向服务器发起连接,服务器接受客户端的连接,双方建立连接。客户端与服务器完成一次读写之后,它们之间的连接并不会主动关闭,后续的读写操作会继续使用这个连接。 Q: 什么是短连接呢? 客户端向服务器发起连接,服务器接受客户端连接,在三次握手之后,双方建立连接。客户端与服务器完成一次读写,发送数据包并得到返回的结果之后,通过客户端和服务器的四次握手断开连接。短连接...
LeetCode https://leetcode.cn/problems/validate-stack-sequences/ class Solution { public boolean validateStackSequences(int[] pushed, int[] popped) { Deque<Integer> stack = ...
LeetCode https://leetcode.cn/problems/subtree-of-another-tree/ /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * ...
LeetCode https://leetcode.cn/problems/spiral-matrix/ class Solution { public List<Integer> spiralOrder(int[][] matrix) { List<Integer> result = new ArrayList<&...
LeetCode https://leetcode.cn/problems/path-sum-ii/ /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode...