From cc389be766203d058b12f16ff61a43103e2ac4d0 Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Tue, 13 Mar 2018 10:25:15 +0800 Subject: [PATCH] auto commit --- notes/JVM.md | 2 +- notes/正则表达式.md | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/notes/JVM.md b/notes/JVM.md index 285b59d3..a49135b3 100644 --- a/notes/JVM.md +++ b/notes/JVM.md @@ -171,7 +171,7 @@ Object obj = new Object(); ```java Object obj = new Object(); -WeakReference wf = new WeakReference(obj); +SoftReference sf = new SoftReference(obj); ``` #### 1.3.3 弱引用 diff --git a/notes/正则表达式.md b/notes/正则表达式.md index 6877d6b1..42d967a3 100644 --- a/notes/正则表达式.md +++ b/notes/正则表达式.md @@ -208,13 +208,13 @@ a.+c **匹配结果** -public void fun() { -     **// 注释 1** -     int a = 1; -     int b = 2; -     **// 注释 2** -     int c = a + b; -} +1. public void fun() { +2.      **// 注释 1** +3.      int a = 1; +4.      int b = 2; +5.      **// 注释 2** +6.      int c = a + b; +7. } # 使用子表达式 @@ -240,9 +240,9 @@ public void fun() { **匹配结果** -**1900 -2010** -1020 +1. **1900 +2. 2010** +3. 1020 **应用** @@ -261,8 +261,8 @@ public void fun() { **匹配结果** -**192.168.0.1** -555.555.555.555 +1. **192.168.0.1** +2. 555.555.555.555 # 回溯引用 @@ -282,9 +282,9 @@ public void fun() { **匹配结果** -**<h1>x</h1> -<h2>x</h2>** -<h3>x</h1> +1. **<h1>x</h1> +2. <h2>x</h2>** +3. <h3>x</h1> ## 替换 @@ -386,9 +386,9 @@ aBCd **结果** -**(abc)** -**abc** -(abc +1. **(abc)** +2. **abc** +3. (abc ## 前后查找条件 @@ -404,6 +404,6 @@ aBCd **结果** -**11111** -22222- -**33333-4444** +1. **11111** +2. 22222- +3. **33333-4444**