广告
返回顶部
首页 > 资讯 > 后端开发 > JAVA >Java 正则表达式匹配
  • 284
分享到

Java 正则表达式匹配

正则表达式java开发语言 2023-10-27 11:10:24 284人浏览 泡泡鱼
摘要

1 正则表达式 1.1 什么是正则表达式 正则表达式: 定义一个搜索模式的字符串。 正则表达式可以用于搜索、编辑和操作文本。 正则对文本的分析或修改过程为:首先正则表达式应用的是文本字符串(text/string),它会以定义的模式从左到右

正则表达式

1.1 什么是正则表达式

正则表达式: 定义一个搜索模式的字符串

正则表达式可以用于搜索、编辑和操作文本。

正则对文本的分析或修改过程为:首先正则表达式应用的是文本字符串(text/string),它会以定义的模式从左到右匹配文本,每个源字符只匹配一次。

1.2 示例

正则表达式匹配
this is text精确匹配字符串 "this is text"
this\s+is\s+text匹配单词 "this" 后跟一个或多个空格字符,后跟词 "is" 后跟一个或多个空格字符,后跟词 "text"
^\d+(\.\d+)?^ 定义模式必须匹配字符串的开始,d+ 匹配一个或多个数字,? 表明小括号内的语句是可选的,\. 匹配 ".",小括号表示分组。例如匹配:"5"、"1.5" 和 "2.21"

2 正则表达式的编写规则

2.1 常见匹配符号

正则表达式描述
.匹配所有单个字符,除了换行符(linux 中换行是 \nwindows 中换行是 \r\n
^regex正则必须匹配字符串开头
regex$正则必须匹配字符串结尾
[abc]复选集定义,匹配字母 a 或 b 或 c
[abc][vz]复选集定义,匹配字母 a 或 b 或 c,后面跟着 v 或 z
[^abc]当插入符 ^ 在中括号中以第一个字符开始显示,则表示否定模式。此模式匹配所有字符,除了 a 或 b 或 c
[a-d1-7]范围匹配,匹配字母 a 到 d 和数字从 1 到 7 之间,但不匹配 d1
XZ匹配 X 后直接跟着 Z
X|Z匹配 X 或 Z

2.2 元字符

元字符是一个预定义的字符。

正则表达式描述
\d匹配一个数字,是 [0-9] 的简写
\D匹配一个非数字,是 [^0-9] 的简写
\s匹配一个空格,是 [ \t\n\x0b\r\f] 的简写
\S匹配一个非空格
\w匹配一个单词字符(大小写字母、数字、下划线),是 [a-zA-Z_0-9] 的简写
\W匹配一个非单词字符(除了大小写字母、数字、下划线之外的字符),等同于 [^\w]

2.3 限定符

限定符定义了一个元素可以发生的频率。

正则表达式描述举例
*匹配 >=0 个,是 {0,} 的简写X* 表示匹配零个或多个字母 X,.* 表示匹配任何字符串
+匹配 >=1 个,是 {1,} 的简写X+ 表示匹配一个或多个字母 X
?匹配 1 个或 0 个,是 {0,1} 的简写X? 表示匹配 0 个或 1 个字母 X
{X}只匹配 X 个字符\d{3} 表示匹配 3 个数字,.{10} 表示匹配任何长度是 10 的字符串
{X,Y}匹配 >=X 且 <=Y 个\d{1,4} 表示匹配至少 1 个最多 4 个数字
*?如果 ? 是限定符 * 或 + 或 ? 或 {} 后面的第一个字符,那么表示非贪婪模式(尽可能少的匹配字符),而不是默认的贪婪模式

2.4 分组和反向引用

小括号 () 可以达到对正则表达式进行分组的效果。

模式分组后会在正则表达式中创建反向引用。反向引用会保存匹配模式分组的字符串片断,这使得我们可以获取并使用这个字符串片断。

在以正则表达式替换字符串的语法中,是通过 $ 来引用分组的反向引用,$0 是匹配完整模式的字符串(注意在 javascript 中是用 $& 表示);$1 是第一个分组的反向引用;$2 是第二个分组的反向引用,以此类推。

示例:

public class RegexTest {    public static void main(String[] args) {        // 去除单词与 , 和 . 之间的空格        String Str = "Hello , World .";        String pattern = "(\\w)(\\s+)([.,])";        // $0 匹配 `(\w)(\s+)([.,])` 结果为 `o空格,` 和 `d空格.`        // $1 匹配 `(\w)` 结果为 `o` 和 `d`        // $2 匹配 `(\s+)` 结果为 `空格` 和 `空格`        // $3 匹配 `([.,])` 结果为 `,` 和 `.`        System.out.println(Str.replaceAll(pattern, "$1$3")); // Hello, World.    }}

上面的例子中,我们使用了 [.] 来匹配普通字符 . 而不需要使用 [\\.]。因为正则对于 [] 中的 .,会自动处理为 [\.],即普通字符 . 进行匹配。

2.4.1 仅分组但无反向引用

当我们在小括号 () 内的模式开头加入 ?:,那么表示这个模式仅分组,但不创建反向引用。

示例:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "img.jpg";        // 分组且创建反向引用        Pattern pattern = Pattern.compile("(jpg|png)");        Matcher matcher = pattern.matcher(str);        while (matcher.find()) {            System.out.println(matcher.group());            System.out.println(matcher.group(1));        }    }}

运行结果:

jpg jpg

源码改为:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "img.jpg";        // 分组但不创建反向引用        Pattern pattern = Pattern.compile("(?:jpg|png)");        Matcher matcher = pattern.matcher(str);        while (matcher.find()) {            System.out.println(matcher.group());            System.out.println(matcher.group(1));        }    }}

运行结果:

jpgException in thread "main" java.lang.IndexOutOfBoundsException: No group 1    at java.util.regex.Matcher.group(Matcher.java:538)    at com.wuxianjiezh.regex.RegexTest.main(RegexTest.java:15)

2.4.2 分组的反向引用副本

Java 中可以在小括号中使用 ? 将小括号中匹配的内容保存为一个名字为 name 的副本。

示例:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "@wkf 你好啊";        Pattern pattern = Pattern.compile("@(?\\w+\\s)"); // 保存一个副本        Matcher matcher = pattern.matcher(str);        while (matcher.find()) {            System.out.println(matcher.group());            System.out.println(matcher.group(1));            System.out.println(matcher.group("first"));        }    }}

运行结果:

@wkfwkf wkf 

2.5 否定先行断言(Negative lookahead)

我们可以创建否定先行断言模式的匹配,即某个字符串后面不包含另一个字符串的匹配模式。

否定先行断言模式通过 (?!pattern) 定义。比如,我们匹配后面不是跟着 "b" 的 "a":

a(?!b)

2.6 指定正则表达式的模式

可以在正则的开头指定模式修饰符。

  • (?i) 使正则忽略大小写。
  • (?s) 表示单行模式("single line mode")使正则的 . 匹配所有字符,包括换行符。
  • (?m) 表示多行模式("multi-line mode"),使正则的 ^ 和 $ 匹配字符串中每行的开始和结束。

2.7 Java 中的反斜杠

反斜杠 \ 在 Java 中表示转义字符,这意味着 \ 在 Java 拥有预定义的含义。

这里例举两个特别重要的用法:

  • 在匹配 . 或 { 或 [ 或 ( 或 ? 或 $ 或 ^ 或 * 这些特殊字符时,需要在前面加上 \\,比如匹配 . 时,Java 中要写为 \\.,但对于正则表达式来说就是 \.
  • 在匹配 \ 时,Java 中要写为 \\\\,但对于正则表达式来说就是 \\

注意:Java 中的正则表达式字符串有两层含义,首先 Java 字符串转义出符合正则表达式语法的字符串,然后再由转义后的正则表达式进行模式匹配。

2.8 易错点示例

  • [jpg|png] 代表匹配 j 或 p 或 g 或 p 或 n 或 g 中的任意一个字符。
  • (jpg|png) 代表匹配 jpg 或 png

3 在字符串中使用正则表达式

3.1 内置的字符串正则处理方法

在 Java 中有四个内置的运行正则表达式的方法,分别是 matches()split())replaceFirst()replaceAll()。注意 replace() 方法不支持正则表达式。

方法描述
s.matches("regex")当仅且当正则匹配整个字符串时返回 true
s.split("regex")按匹配的正则表达式切片字符串
s.replaceFirst("regex", "replacement")替换首次匹配的字符串片段
s.replaceAll("regex", "replacement")替换所有匹配的字符

3.2 代码示例 

public class RegexTest {    public static void main(String[] args) {        System.out.println("wxj".matches("wxj"));        System.out.println("----------");        String[] array = "w x j".split("\\s");        for (String item : array) {            System.out.println(item);        }        System.out.println("----------");        System.out.println("w x j".replaceFirst("\\s", "-"));        System.out.println("----------");        System.out.println("w x j".replaceAll("\\s", "-"));    }}

 运行结果:

true----------wxj----------w-x j----------w-x-j

4 模式和匹配

Java 中使用正则表达式需要用到两个类,分别为 java.util.regex.Pattern 和 java.util.regex.Matcher

第一步,通过正则表达式创建模式对象 Pattern

第二步,通过模式对象 Pattern,根据指定字符串创建匹配对象 Matcher

第三步,通过匹配对象 Matcher,根据正则表达式操作字符串。

来个例子,加深理解:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String text = "Hello Regex!";        Pattern pattern = Pattern.compile("\\w+");        // Java 中忽略大小写,有两种写法:        // Pattern pattern = Pattern.compile("\\w+", Pattern.CASE_INSENSITIVE);        // Pattern pattern = Pattern.compile("(?i)\\w+"); // 推荐写法        Matcher matcher = pattern.matcher(text);        // 遍例所有匹配的序列        while (matcher.find()) {            System.out.print("Start index: " + matcher.start());            System.out.print(" End index: " + matcher.end() + " ");            System.out.println(matcher.group());        }        // 创建第两个模式,将空格替换为 tab        Pattern replace = Pattern.compile("\\s+");        Matcher matcher2 = replace.matcher(text);        System.out.println(matcher2.replaceAll("\t"));    }}

运行结果:

Start index: 0 End index: 5 HelloStart index: 6 End index: 11 RegexHello    Regex!

5 若干个常用例子

5.1 中文的匹配

[\u4e00-\u9fa5]+ 代表匹配中文字。

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "这是中文";        Pattern pattern = Pattern.compile("[\\u4e00-\\u9fa5]+");        Matcher matcher = pattern.matcher(str);        while (matcher.find()) {            System.out.println(matcher.group());        }    }}

运行结果:

这是中文

5.2 数字范围的匹配

比如,匹配 1990 到 2017。

注意:这里有个新手易范的错误,就是正则 [1990-2017],实际这个正则只匹配 0 或 1 或 2 或 7 或 9 中的任一个字符。

正则表达式匹配数字范围时,首先要确定最大值与最小值,最后写中间值。

正确的匹配方式:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "1990\n2010\n2017";        // 这里应用了 (?m) 的多行匹配模式,只为方便我们测试输出        // "^1990$|^199[1-9]$|^20[0-1][0-6]$|^2017$" 为判断 1990-2017 正确的正则表达式        Pattern pattern = Pattern.compile("(?m)^1990$|^199[1-9]$|^20[0-1][0-6]$|^2017$");        Matcher matcher = pattern.matcher(str);        while (matcher.find()) {            System.out.println(matcher.group());        }    }}

运行结果:

199020102017

5.3 img 标签的匹配

比如,获取图片文件内容,这里我们考虑了一些不规范的 img 标签写法:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "" +                "";        // 这里我们考虑了一些不规范的 img 标签写法,比如:空格、引号        Pattern pattern = Pattern.compile("\\w+.(jpg|png))(?:['\"])?\\s*/>");        Matcher matcher = pattern.matcher(str);        while (matcher.find()) {            System.out.println(matcher.group("src"));        }    }}

运行结果:

https://blog.csdn.net/qq_37284798/article/details/aaa.jpgbbb.pnGCcc.png

5.4 贪婪与非贪婪模式的匹配

比如,获取 div 标签中的文本内容:

import java.util.regex.Matcher;import java.util.regex.Pattern;public class RegexTest {    public static void main(String[] args) {        String str = "
文章标题
发布时间
"; // 贪婪模式 Pattern pattern = Pattern.compile("
(?.+)</div>"); Matcher matcher = pattern.matcher(str); while (matcher.find()) { System.out.println(matcher.group("title")); } System.out.println("--------------"); // 非贪婪模式 pattern = Pattern.compile("<div>(?<title>.+?)</div>"); matcher = pattern.matcher(str); while (matcher.find()) { System.out.println(matcher.group("title")); } }}</code></code></pre> <p>运行结果:</p> <blockquote> <pre><code>文章标题</div><div>发布时间--------------文章标题发布时间</code></pre> </blockquote> <h2>6 推荐两个在线正则<a href="https://www.lsjlt.com/tag/工具/" target="_blank"><strong class="keylink">工具</strong></a></h2> <ul><li>JavaScript、<a href="http://www.lsjlt.com/python/" target="_blank"><strong class="keylink">python</strong></a> 等的在线表达式工具:<a href="https://link.segmentfault.com/?enc=AT3K2gunbCH8qBoy6D3DAA==.4tDMNyO0ZZMl1X7VDgrIipLVKPthV29fCgLb8QiI9dU=" title="https://regex101.com/">https://regex101.com/</a></li><li>Java 在线表达式工具:<a href="https://link.segmentfault.com/?enc=x+CfJMV8kmkIdVrtS/eHJw==.qp6NLQ7zqcZ0Lp9IX1Qx/qveHKOkGg738uVobF1ZI1QBQZIsMMQiu27CstqYPI+MCG8Xef0j25bXzxlDssQ/Gw==" title="http://www.regexplanet.com/advanced/java/index.html">http://www.regexplanet.com/advanced/java/index.html</a></li></ul> <p>来源地址:<a href="https://blog.csdn.net/qq_37284798/article/details/129950910" target="_blank">https://blog.csdn.net/qq_37284798/article/details/129950910</a></p></div> </div> <div class="zx_ad"> <a lay-on="showLoginPopup" href="javascript:void(0);" title="点击免费下载>>软考高级考试备考技巧/历年真题/备考精华资料">点击免费下载>>软考高级考试备考技巧/历年真题/备考精华资料</a> </div> <div class="_pygc7ymq24"></div> <script type="text/javascript"> (window.slotbydup = window.slotbydup || []).push({ id: "u6937588", container: "_pygc7ymq24", async: true }); </script> <div class="foart"> <p style="text-align: CENTER;COLOR: #999999;font-size: 13px;">--结束END--</p> <p style="text-align: CENTER;COLOR: #999999;font-size: 13px;"> 本文标题: Java 正则表达式匹配</p> <p style="text-align: CENTER;COLOR: #999999;font-size: 13px;"> 本文链接: https://www.lsjlt.com/news/490218.html(转载时请注明来源链接)</p> <p style="text-align: CENTER;COLOR: #999999;font-size: 13px;">有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341</p> </div> </div> </div> </div> <div class="downLoad clearfix"> <div class="downIntro"> <span class="icon icon_downdoc bg_content bg_word"></span> <div class="downtxtIntro"> <h4>本篇文章演示代码以及资料文档资料下载</h4> <p>下载Word文档到电脑,方便收藏和打印~</p> </div> </div> <div class="downBtn bg_content bg_down" lay-on="showLoginPopup">下载Word文档</div> </div> <div class="news_qbank"> <div class="news_qbank"> <a lay-on="showLoginPopup" href="javascript:void(0);" title="">去做题</a> </div> </div> <div class="nex_neirong_c"> <div class="nex_index_sd_title"> <span>猜你喜欢</span> <div class="clear"></div> </div> <div class="nex_Info_artices"> <ul> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/490218.html" title="" target="_blank">Java 正则表达式匹配</a></h5> <div class="nex_png_summary">1 正则表达式 1.1 什么是正则表达式 正则表达式: 定义一个搜索模式的字符串。 正则表达式可以用于搜索、编辑和操作文本。 正则对文本的分析或修改过程为:首先正则表达式应用的是文本字符串(text/string),它会以定义的模式从左到右... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-10-27</dd> <dd class="nex_article_catname"> <a href="/tag/正则表达式/" title="正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">正则表达式</a> <a href="/tag/java/" title="java" class="ren-summary-tag" style="color: #fff!important;background-color: #9961dd;">java</a> <a href="/tag/开发语言/" title="开发语言" class="ren-summary-tag" style="color: #fff!important;background-color: #b1c248;">开发语言</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/201140.html" title="" target="_blank">Java匹配正则表达式汇总</a></h5> <div class="nex_png_summary"> 目录一.我们先举个例子来看看Java匹配正则表达式二.匹配表达式的特殊情况java匹配字符串表达式在我们数据处理方面是及其重要的,现在就把我这几天数据处理比较常用的向大家介绍一下,常... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-03-24</dd> <dd class="nex_article_catname"> <a href="/tag/Java匹配正则表达式/" title="Java匹配正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">Java匹配正则表达式</a> <a href="/tag/java正则匹配/" title="java正则匹配" class="ren-summary-tag" style="color: #fff!important;background-color: #9961dd;">java正则匹配</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/151024.html" title="" target="_blank">Java正则表达式API边界匹配</a></h5> <div class="nex_png_summary"> 目录Boundary MatchersPattern Class MethodsPattern.CANON_EQPattern.CASE_INSENSITIVEPattern.COM... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2022-11-13</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/431086.html" title="" target="_blank">怎么用java正则表达式匹配单词</a></h5> <div class="nex_png_summary"> 使用Java正则表达式匹配单词,可以按照以下步骤进行:1. 创建一个正则表达式模式,用于匹配单词。例如,可以使用 \b\w+\b 来... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-10-18</dd> <dd class="nex_article_catname"> <a href="/tag/java/" title="java" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">java</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/200898.html" title="" target="_blank">Python中使用正则表达式及正则表达式匹配规则详解</a></h5> <div class="nex_png_summary"> 目录1 导库2 使用模板3 说明4 示例5 正则表达式匹配规则1 导库 import re 2 使用模板 re_pattern = re.compile(pattern, flags... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-03-22</dd> <dd class="nex_article_catname"> <a href="/tag/Python正则表达式匹配规则/" title="Python正则表达式匹配规则" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">Python正则表达式匹配规则</a> <a href="/tag/Python正则表达式/" title="Python正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #9961dd;">Python正则表达式</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/168990.html" title="" target="_blank">java正则表达式匹配规则超详细总结</a></h5> <div class="nex_png_summary"> 目录1 单个字符的匹配规则如下:2 多个字符的匹配规则如下:3 复杂匹配规则主要有:4 提取匹配的字符串子段5 非贪婪匹配6 替换和搜索6.1 分割字符串6.2 搜索字符串6.3 替... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2022-11-13</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/425344.html" title="" target="_blank">正则表达式空格如何匹配</a></h5> <div class="nex_png_summary"> 正则表达式中,空格可以使用`\s`匹配。`\s`匹配任意空白字符,包括空格、制表符、换行符等。 举个例子,如果想要匹配一个包含空格的... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-10-08</dd> <dd class="nex_article_catname"> <a href="/tag/正则表达式/" title="正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">正则表达式</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/410874.html" title="" target="_blank">在正则表达式中匹配空格</a></h5> <div class="nex_png_summary"> 在正则表达式中,可以使用`\s`来匹配空格字符,包括空格、制表符、换行符等。如果只想匹配空格,可以使用空格字符直接匹配。以下是两个示... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-09-17</dd> <dd class="nex_article_catname"> <a href="/tag/正则表达式/" title="正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">正则表达式</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/14929.html" title="" target="_blank">Python匹配中文的正则表达式</a></h5> <div class="nex_png_summary"> 正则表达式并不是Python的一部分。正则表达式是用于处理字符串的强大工具,拥有自己独特的语法以及一个独立的处理引擎,效率上可能不如str自带的方法,但功能十分强大。得益于这一点,在提供了正则表达式的语言里... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2022-06-04</dd> <dd class="nex_article_catname"> <a href="/tag/中文/" title="中文" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">中文</a> <a href="/tag/正则表达式/" title="正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #9961dd;">正则表达式</a> <a href="/tag/Python/" title="Python" class="ren-summary-tag" style="color: #fff!important;background-color: #b1c248;">Python</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/293471.html" title="" target="_blank">正则表达式如何匹配单词</a></h5> <div class="nex_png_summary">这篇文章给大家分享的是有关正则表达式如何匹配单词的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。正则表达式匹配单词的内幕:元字符<<\b>>也是一种对位置进行匹配的“锚”。这种匹配是0长度匹... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-06-17</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/293488.html" title="" target="_blank">正则表达式怎么匹配数字</a></h5> <div class="nex_png_summary">这篇文章给大家分享的是有关正则表达式怎么匹配数字的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。高效正则表达式匹配数字实例:^[1-9]\d*$      //匹配正整数&n... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-06-17</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/143318.html" title="" target="_blank">Java正则表达式循环匹配字符串方式</a></h5> <div class="nex_png_summary"> 目录正则表达式循环匹配字符串Java匹配正则表达式大全我们先举个例子来看看Java匹配正则表达式匹配表达式的特殊情况正则表达式循环匹配字符串 public static void m... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2022-11-13</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/418741.html" title="" target="_blank">正则表达式的匹配规则有哪些</a></h5> <div class="nex_png_summary"> 正则表达式的匹配规则有以下几种:1. 字符匹配:使用普通字符来匹配输入的相应字符。2. 通配符匹配:使用特殊字符来匹配任意一个字符。... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-09-26</dd> <dd class="nex_article_catname"> <a href="/tag/正则表达式/" title="正则表达式" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">正则表达式</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/353089.html" title="" target="_blank">Java匹配正则表达式的方法是什么</a></h5> <div class="nex_png_summary">这篇文章主要介绍了Java匹配正则表达式的方法是什么的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Java匹配正则表达式的方法是什么文章都会有所收获,下面我们一起来看看吧。一.我们先举个例子来看看Java匹配正... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-07-05</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/206188.html" title="" target="_blank">Python中怎么使用正则表达式及正则表达式匹配规则是什么</a></h5> <div class="nex_png_summary">1 导库import re2 使用模板re_pattern = re.compile(pattern, flags=0) result = re.findall(re_pattern,string)3 说明参数描述pattern匹配的正则表... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-05-14</dd> <dd class="nex_article_catname"> <a href="/tag/Python/" title="Python" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">Python</a> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/130277.html" title="" target="_blank">C++实现LeetCode(10.正则表达式匹配)</a></h5> <div class="nex_png_summary"> [LeetCode] 10. Regular Expression Matching 正则表达式匹配 Given an input string (s) and a pattern ... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2022-11-12</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/357518.html" title="" target="_blank">Notepad++怎么使用正则表达式匹配</a></h5> <div class="nex_png_summary">今天小编给大家分享一下Notepad++怎么使用正则表达式匹配的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。Notepad+... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-07-06</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/169049.html" title="" target="_blank">Java中正则表达式匹配过程实例详解</a></h5> <div class="nex_png_summary"> 目录下面是Java正则表达式的语法字符:正则表达式简单的匹配过程:(1) 基础匹配过程(2)贪婪模式(3)非贪婪模式 (4)零宽度匹配过程总结正则表达式:定义字符串的模式,... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2022-11-13</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/340599.html" title="" target="_blank">Java正则表达式API边界匹配怎么实现</a></h5> <div class="nex_png_summary">本篇内容主要讲解“Java正则表达式API边界匹配怎么实现”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Java正则表达式API边界匹配怎么实现”吧!Boundary MatchersJava ... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-07-02</dd> <dd class="nex_article_catname"> </dd> <div class="clear"></div> </dl> </div> </li> <li> <div class="nex_article_bd_mid"> <div class="nex_article_bd_mid_l" style="width: 100%;"> <h5><a href="/news/209326.html" title="" target="_blank">Notepad++使用正则表达式匹配的方法</a></h5> <div class="nex_png_summary"> 目录Notepad++ 使用正则表达式匹配一、常见匹配1、正则表达式匹配以某字符开头的这一行数据2、正则表达式匹配以a字符串开头,b字符串结尾的字符,中间不管3、只匹配纯数字的字符串... </div> </div> <div class="clear"></div> </div> <div class="nex_article_bd_btm"> <dl> <dd class="nex_article_views">99+</dd> <dd>2023-05-15</dd> <dd class="nex_article_catname"> <a href="/tag/Notepad++正则表达式匹配/" title="Notepad++正则表达式匹配" class="ren-summary-tag" style="color: #fff!important;background-color: #958ef2;">Notepad++正则表达式匹配</a> <a href="/tag/正则表达式匹配/" title="正则表达式匹配" class="ren-summary-tag" style="color: #fff!important;background-color: #9961dd;">正则表达式匹配</a> </dd> <div class="clear"></div> </dl> </div> </li> </ul> </div> </div> </div> <div class="nex_ART_content_r"> <!--广告位--> <div class="nex_right_grids nex_plugin_grids"> <div class="nex_index_sd_title"> <span>软考高级职称资格查询</span> <div class="clear"></div> </div> <a lay-on="showLoginPopup" href="javascript:void(0);" class="seo_bk_com"></a> </div> <div class="nex_right_grids nex_plugin_grids seo_right_exam"> <div class="nex_index_sd_title"> <span>软考职称历年真题下载</span> <div class="clear"></div> </div> <ul> <li> <span class="news_icon_paper"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023下半年-信息系统项目管理师-真题考点汇总(完整版)">2023下半年-信息系统项目管理师-真题考点汇总(完整版)</a> <div class="news_paper_infos"> 164.2 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="news_icon_paper"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023年下半年信息系统项目管理师第一、二批次各科目真题考点整理(考友回忆版)">2023年下半年信息系统项目管理师第一、二批次各科目真题考点整理(考友回忆版)</a> <div class="news_paper_infos"> 143.67 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="news_icon_paper"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023上半年软考高级《信息系统项目管理师》真题答案(抢先版)">2023上半年软考高级《信息系统项目管理师》真题答案(抢先版)</a> <div class="news_paper_infos"> 500.26 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="news_icon_paper"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2022年下半年软考高级职称考试考情分析">2022年下半年软考高级职称考试考情分析</a> <div class="news_paper_infos"> 823.36 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="news_icon_paper"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2022年下半年软考高级职称考试真题">2022年下半年软考高级职称考试真题</a> <div class="news_paper_infos"> 569.84 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> </ul> </div> <div class="nex_right_grids nex_plugin_grids seo_right_exam"> <div class="nex_index_sd_title"> <span>软考职称资料下载</span> <div class="clear"></div> </div> <ul> <li> <span class="icon_pdf"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023下半年-系统集成项目管理工程师-真题考点汇总(完整版)">2023下半年-系统集成项目管理工程师-真题考点汇总(完整版)</a> <div class="news_paper_infos"> 143.91 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="icon_pdf"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023年下半年系统集成项目管理工程师第一、二、三批次真题考点整理(考友回忆版)">2023年下半年系统集成项目管理工程师第一、二、三批次真题考点整理(考友回忆版)</a> <div class="news_paper_infos"> 183.71 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="icon_pdf"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023年上半年软考中级《系统集成项目管理工程师》-基础知识-考试真题及答案">2023年上半年软考中级《系统集成项目管理工程师》-基础知识-考试真题及答案</a> <div class="news_paper_infos"> 644.84 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="icon_pdf"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023年上半年软考中级《系统集成项目管理工程师》-应用技术-考试真题及答案">2023年上半年软考中级《系统集成项目管理工程师》-应用技术-考试真题及答案</a> <div class="news_paper_infos"> 314.7 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> <li> <span class="icon_pdf"></span> <div class="news_paper_info"> <a href="javascript:void(0);" lay-on="showLoginPopup" title="2023年下半年第一二批次系统集成项目管理工程师《案例分析》真题考点">2023年下半年第一二批次系统集成项目管理工程师《案例分析》真题考点</a> <div class="news_paper_infos"> 115.57 KB   <a href="javascript:void(0);" lay-on="showLoginPopup" class="nologinbutton">查看</a> </div> </div> </li> </ul> </div> <div class="nex_right_grids nex_plugin_grids"> <div class="nex_index_sd_title"> <span>热门wiki</span> <div class="clear"></div> </div> <div class="nex_recom_reading_list"> <ul> <div id="nex_recom_reading_list122"> <div id="frameB500mO" class="frame move-span cl frame-1"> <div id="frameB500mO_left" class="column frame-1-c"> <div id="portal_block_580" class="block move-span"> <div id="portal_block_580_content" class="dxb_bc"> <li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/1dae00eca8.html" target="_blank" title="mysql删除数据恢复">mysql删除数据恢复</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/90fb1d689c.html" target="_blank" title="mysql删表能回滚吗">mysql删表能回滚吗</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/41f48e39f4.html" target="_blank" title="mysql找回删除的表">mysql找回删除的表</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/95b479cd93.html" target="_blank" title="mysql不小心删除了表">mysql不小心删除了表</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/7d1d3ffca2.html" target="_blank" title="mysql不小心把表删了怎么恢复数据">mysql不小心把表删了怎么恢复数据</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/3d1abe458d.html" target="_blank" title="mysql数据表删除后能恢复么">mysql数据表删除后能恢复么</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/fbf87a998d.html" target="_blank" title="mysql误删表数据恢复">mysql误删表数据恢复</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/13939eb495.html" target="_blank" title="mysql误删表恢复">mysql误删表恢复</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/e12fe35b9b.html" target="_blank" title="mysql删除表怎么恢复">mysql删除表怎么恢复</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/wiki/d4421165ca.html" target="_blank" title="mysql删除表">mysql删除表</a></div> </li></div> </div> </div> </div> </div> </ul> </div> </div> <!--近期文章--> <div class="nex_right_grids nex_plugin_grids"> <div class="nex_index_sd_title"> <span>近期文章</span> <div class="clear"></div> </div> <div class="nex_recom_reading_list"> <ul> <div id="nex_recom_reading_list122"> <div id="frameB500mO" class="frame move-span cl frame-1"> <div id="frameB500mO_left" class="column frame-1-c"> <div id="portal_block_580" class="block move-span"> <div id="portal_block_580_content" class="dxb_bc"> <li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/595042.html" target="_blank" title="如何深入钻研数据库管理的复杂世界?">如何深入钻研数据库管理的复杂世界?</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/595034.html" target="_blank" title="如何处理用户的会话管理知识点问题?">如何处理用户的会话管理知识点问题?</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/595040.html" target="_blank" title="如何驯服并发编程的野兽?">如何驯服并发编程的野兽?</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/595038.html" target="_blank" title="如何应对 C++ 中的指针管理挑战?">如何应对 C++ 中的指针管理挑战?</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/594783.html" target="_blank" title="Java 语法的迷宫:绕过陷阱,找到出路">Java 语法的迷宫:绕过陷阱,找到出路</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/594792.html" target="_blank" title="Java 语法谜团:揭开编程语言的谜团">Java 语法谜团:揭开编程语言的谜团</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/594798.html" target="_blank" title="Java 语法解剖学:深入了解编程语言的组成部分">Java 语法解剖学:深入了解编程语言的组成部分</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/594788.html" target="_blank" title="Java 语法快车:快速掌握编程语言的基本要素">Java 语法快车:快速掌握编程语言的基本要素</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/594791.html" target="_blank" title="Java 语法大师班:提升你的编程技能">Java 语法大师班:提升你的编程技能</a></div> </li><li> <div class="nex_article_current"><a href="https://www.lsjlt.com/news/594786.html" target="_blank" title="Java 语法探险:深入了解编程的基础">Java 语法探险:深入了解编程的基础</a></div> </li></div> </div> </div> </div> </div> </ul> </div> </div> <!--推荐阅读--> <div class="nex_right_grids"> <div class="nex_index_sd_title"> <span>推荐阅读</span> <div class="clear"></div> </div> <div class="nex_recom_reading_list"> <ul> <div id="nex_recom_reading_list"> <div id="frameMcfpX9" class="frame move-span cl frame-1"> <div id="frameMcfpX9_left" class="column frame-1-c"> <div id="portal_block_575" class="block move-span"> <div id="portal_block_575_content" class="dxb_bc"> <li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/595042.html" title="如何深入钻研数据库管理的复杂世界?" target="_blank">如何深入钻研数据库管理的复杂世界?</a> </h5> <p>2024-04-03</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/595042.html" target="_blank" title="如何深入钻研数据库管理的复杂世界?" style="background:url(https://www.lsjlt.com/static/imgs/35.jpg) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/595034.html" title="如何处理用户的会话管理知识点问题?" target="_blank">如何处理用户的会话管理知识点问题?</a> </h5> <p>2024-04-03</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/595034.html" target="_blank" title="如何处理用户的会话管理知识点问题?" style="background:url(https://www.lsjlt.com/static/imgs/26.jpg) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/595043.html" title="如何掌握人工智能的未知领域?" target="_blank">如何掌握人工智能的未知领域?</a> </h5> <p>2024-04-01</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/595043.html" target="_blank" title="如何掌握人工智能的未知领域?" style="background:url(https://www.lsjlt.com/static/imgs/8.jpg) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/556193.html" title="身为Java“搬砖”程序员,你掌握了多线程吗?" target="_blank">身为Java“搬砖”程序员,你掌握了多线程吗?</a> </h5> <p>2024-01-21</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/556193.html" target="_blank" title="身为Java“搬砖”程序员,你掌握了多线程吗?" style="background:url(https://file.lsjlt.com/upload/f/202401/21/0t4n42zm2v2.png) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/556136.html" title="Java医院智能3D导诊系统源码 微信小程序源码" target="_blank">Java医院智能3D导诊系统源码 微信小程序源码</a> </h5> <p>2024-01-21</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/556136.html" target="_blank" title="Java医院智能3D导诊系统源码 微信小程序源码" style="background:url(https://file.lsjlt.com/upload/f/202401/21/c4zfsaz42ze.gif) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/556241.html" title="AVL树(Java)" target="_blank">AVL树(Java)</a> </h5> <p>2024-01-21</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/556241.html" target="_blank" title="AVL树(Java)" style="background:url(https://file.lsjlt.com/upload/f/202401/21/q4w0p3jd13l.png) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/556134.html" title="《面试专题-----经典高频面试题收集一》解锁 Java 面试的关键:深度解析常见高频经典面试题(第一篇)" target="_blank">《面试专题-----经典高频面试题收集一》解锁 Java 面试的关键:深度解析常见高频经典面试题(第一篇)</a> </h5> <p>2024-01-21</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/556134.html" target="_blank" title="《面试专题-----经典高频面试题收集一》解锁 Java 面试的关键:深度解析常见高频经典面试题(第一篇)" style="background:url(https://www.lsjlt.com/static/imgs/26.jpg) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/556169.html" title="【网络安全必备 | 前端开发基础】一篇文章速学 JavaScript" target="_blank">【网络安全必备 | 前端开发基础】一篇文章速学 JavaScript</a> </h5> <p>2024-01-21</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/556169.html" target="_blank" title="【网络安全必备 | 前端开发基础】一篇文章速学 JavaScript" style="background:url(https://file.lsjlt.com/upload/f/202401/21/e1cklqkbffh.png) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/551730.html" title="⑩【Redis Java客户端】:Jedis、SpringDataRedis、StringRedisTemplate" target="_blank">⑩【Redis Java客户端】:Jedis、SpringDataRedis、StringRedisTemplate</a> </h5> <p>2023-12-23</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/551730.html" target="_blank" title="⑩【Redis Java客户端】:Jedis、SpringDataRedis、StringRedisTemplate" style="background:url(https://file.lsjlt.com/upload/f/202312/23/ai4dfoyogix.gif) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li><li> <div class="nex_rrl_intel"> <h5><a href="https://www.lsjlt.com/news/551731.html" title="JDK8和JDK17安装切换,IDEA配置多个版本JDK" target="_blank">JDK8和JDK17安装切换,IDEA配置多个版本JDK</a> </h5> <p>2023-12-23</p> </div> <div class="nex_rrl_img"> <a href="https://www.lsjlt.com/news/551731.html" target="_blank" title="JDK8和JDK17安装切换,IDEA配置多个版本JDK" style="background:url(https://file.lsjlt.com/upload/f/202312/23/pbylmtobzao.png) center no-repeat; background-size:cover;"></a> </div> <div class="clear"></div> </li></div> </div> </div> </div> </div> </ul> </div> </div> <!--热门问答--> <div class="nex_right_grids"> <div class="nex_index_sd_title"> <span>热门问答</span> <div class="clear"></div> </div> <div class="nex_recom_reading_list"> <ul> <div id="nex_recom_reading_list1"> <div id="framefe7ykY" class="frame move-span cl frame-1"> <div id="framefe7ykY_left" class="column frame-1-c"> <div id="framefe7ykY_left_temp" class="move-span temp"></div> <div id="portal_block_579" class="block move-span"> <div id="portal_block_579_content" class="dxb_bc"> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/101ad.html" target="_blank" title="如何调试操作系统的错误?">如何调试操作系统的错误?</a><br>操作系统</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/c541b.html" target="_blank" title="操作系统中的I/O系统是如何实现的?">操作系统中的I/O系统是如何实现的?</a><br>操作系统</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/d3656.html" target="_blank" title="如何实现操作系统的内存管理?">如何实现操作系统的内存管理?</a><br>操作系统</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/b9b36.html" target="_blank" title="什么是虚拟内存,它对操作系统有什么影响?">什么是虚拟内存,它对操作系统有什么影响?</a><br>操作系统</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/80ee6.html" target="_blank" title="ASP中的MVC架构和WebForms架构有什么区别和使用场景?">ASP中的MVC架构和WebForms架构有什么区别和使用场景?</a><br>ASP.NET</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/a99c1.html" target="_blank" title="ASP中的数据验证和数据校验有什么不同?">ASP中的数据验证和数据校验有什么不同?</a><br>ASP.NET</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/27db3.html" target="_blank" title="ASP中的ADO对象和DAO对象有什么区别和使用方法?">ASP中的ADO对象和DAO对象有什么区别和使用方法?</a><br>ASP.NET</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/200a1.html" target="_blank" title="Node.js中的包管理器NPM是什么?如何使用它进行依赖管理?">Node.js中的包管理器NPM是什么?如何使用它进行依赖管理?</a><br>node.js</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/14d37.html" target="_blank" title="Vue.js中的动态组件是什么?如何使用它来动态渲染组件?">Vue.js中的动态组件是什么?如何使用它来动态渲染组件?</a><br>VUE</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> <li> <div class="nex_art_qna_top"> <div class="nex_art_qna_top_l"> <em>1</em> <p>回答</p> </div> <div class="nex_art_qna_top_r"><a href="https://www.lsjlt.com/ask/31720.html" target="_blank" title="如何使用Vue.js实现懒加载和预加载?">如何使用Vue.js实现懒加载和预加载?</a><br>VUE</div> <div class="clear"></div> </div> <div class="nex_art_qna_btm"> <span></span> <em>2023-11-15发布</em> <div class="clear"></div> </div> </li> </div> </div> </div> </div> </div> </ul> </div> </div> <div class="nex_right_grids"> <div class="nex_index_sd_title"> <span>热门标签</span> <div class="clear"></div> </div> <div class="nex_recom_reading_list"> <ul class="tagarr"> <li> <a href="/tag/概率控制/" title="概率控制" target="_blank">概率控制</a> <a href="/tag/打乱顺序/" title="打乱顺序" target="_blank">打乱顺序</a> <a href="/tag/函数生态/" title="函数生态" target="_blank">函数生态</a> <a href="/tag/内存释放器/" title="内存释放器" target="_blank">内存释放器</a> <a href="/tag/函数缓存/" title="函数缓存" target="_blank">函数缓存</a> <a href="/tag/属性列表/" title="属性列表" target="_blank">属性列表</a> <a href="/tag/音频数据/" title="音频数据" target="_blank">音频数据</a> <a href="/tag/副作用/" title="副作用" target="_blank">副作用</a> <a href="/tag/框架易用性/" title="框架易用性" target="_blank">框架易用性</a> <a href="/tag/动态修改变量值/" title="动态修改变量值" target="_blank">动态修改变量值</a> <a href="/tag/web请求/" title="web请求" target="_blank">web请求</a> <a href="/tag/编码实践/" title="编码实践" target="_blank">编码实践</a> <a href="/tag/数组打乱顺序/" title="数组打乱顺序" target="_blank">数组打乱顺序</a> <a href="/tag/恢复原序/" title="恢复原序" target="_blank">恢复原序</a> <a href="/tag/数组乱序/" title="数组乱序" target="_blank">数组乱序</a> <a href="/tag/安全增强措施/" title="安全增强措施" target="_blank">安全增强措施</a> <a href="/tag/锁竞争/" title="锁竞争" target="_blank">锁竞争</a> <a href="/tag/数组性能/" title="数组性能" target="_blank">数组性能</a> <a href="/tag/图片数据处理/" title="图片数据处理" target="_blank">图片数据处理</a> <a href="/tag/生成主题摘要/" title="生成主题摘要" target="_blank">生成主题摘要</a> <a href="/tag/测试策略/" title="测试策略" target="_blank">测试策略</a> <a href="/tag/保持键名/" title="保持键名" target="_blank">保持键名</a> <a href="/tag/关键字:php/" title="关键字:php" target="_blank">关键字:php</a> <a href="/tag/可测试代码/" title="可测试代码" target="_blank">可测试代码</a> <a href="/tag/函数新特性/" title="函数新特性" target="_blank">函数新特性</a> <a href="/tag/o(n)/" title="o(n)" target="_blank">o(n)</a> <a href="/tag/数组分组/" title="数组分组" target="_blank">数组分组</a> <a href="/tag/查找特定元素/" title="查找特定元素" target="_blank">查找特定元素</a> <a href="/tag/php数组并集/" title="php数组并集" target="_blank">php数组并集</a> <a href="/tag/php数组交集/" title="php数组交集" target="_blank">php数组交集</a> </li> </ul> </div> </div> <script type="text/javascript"> jQuery(window).scroll(function () { var rightH = jQuery('.nex_ART_content_r').height(); var t = jQuery(".nex_ART_content_r").offset().top; var cH = jQuery(document).height(); var h = jQuery(this).scrollTop(); var fH = jQuery('.nexfooter').height(); var wH = jQuery(window).height(); var hH = cH - (h + wH); if (h > rightH && hH > fH) { jQuery(".nex_plugin_grids").addClass('nexfixed'); } else { jQuery(".nex_plugin_grids").removeClass('nexfixed'); } }); jQuery(".nex_art_author_info_top span a").click(function () { window.location.reload();; }); </script> </div> <div class="clear"></div> </div> </div> </div> <div class="nexfooter"> <div class="nexfttop"> <div class="w1240"> <div class="nex_ft_left"> <div class="nex_ft_logotxt"><img src="/skin/bcw/static/picture/ft_txt.png" /></div> <div class="nex_ft_sums">编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。 </div> </div> <div class="nex_ft_middle"> <div class="nex_ft_middle_top"> <ul> <li><a href="/qianduan/" target="_blank" title="前端">前端</a></li> <li><a href="/houduan/" target="_blank" title="后端">后端</a></li> <li><a href="/mysql/" target="_blank" title="数据库">数据库</a></li> <li><a href="/fuwuqi/" target="_blank" title="服务器">服务器</a></li> <li><a href="/anquan/" target="_blank" title="操作系统">操作系统</a></li> <div class="clear"></div> </ul> </div> <div class="nex_ft_middle_btm"> <ul> <li><a href="mailto:279061341@qq.com">商务合作:279061341@qq.com</a></li> <li><a href="https://www.lsjlt.com/sitemaps/baidu/map3.txt">网站地图</a></li> <li><a href="mailto:279061341@qq.com">投稿合作:279061341@qq.com</a></li> <li><a href="/tag/">标签大全</a></li> <li>虚位以待</li> </ul> </div> </div> <div class="nex_ft_right"> <ul> <li> <div class="nex_ft_qcode_img"><img src="/skin/bcw/static/images/mobile_qcode.png" /></div> <p>官方手机版</p> </li> <li> <div class="nex_ft_qcode_img"><img src="/skin/bcw/static/images/wx_qcode.jpg" /></div> <p>微信公众号</p> </li> <li> <div class="nex_ft_qcode_img"><img src="/skin/bcw/static/images/corp_code.png" /></div> <p>商务合作</p> </li> <div class="clear"></div> </ul> </div> <div class="clear"></div> </div> </div> <div class="nexftbottom"> <div class="w1240"> <div class="nex_ft_other_info"> <ul> <li> Powered by <a href="https://www.lsjlt.com" target="_blank">编程网</a> <em>|</em> Copyright © 2018-2023, 版权所有. <em>|</em> <a href="https://www.lsjlt.com/sitemaps/baidu/map4.txt" target="_blank">网站地图</a> <em>|</em> <a href="http://beian.miit.gov.cn/" rel="nofollow" target="_blank">苏ICP备17033115号</a> </li> </ul> </div> <div class="clear"></div> </div> </div> </div> <div id="ft" style="margin:0;padding:0; height:0;"></div> <div id="scrolltop" style="display:none;"> <span hidefocus="true"><a title="返回顶部" onclick="window.scrollTo('0','0')" id="scrolltopa"><b>返回顶部</b></a></span> </div> <script src="/skin/bcw/static/js/indexsms.js?v=20240108.1443"></script> <script src="/skin/layui/layui.js" type="text/javascript"></script> <script src="/skin/bcw/static/js/logo_pop.js" type="text/javascript"></script> <style> .layui-layer-iframe{overflow: hidden;} .layui-layer-close2{ background: url(https://s.hqwx.com/statics/home/pc/examTime/images/ico_close.png); top: 0px!important; right: 0px!important; cursor: pointer; background-position: 0 0 !important; } </style> <script> layui.use(function(){ var $ = layui.$; var layer = layui.layer; var util = layui.util; // 事件 util.on('lay-on', { 'showLoginPopup': function(){ layer.open({ type: 2, title: false, shade: 0.7, fixed: true, area: ['480px', '550px'], content: ['https://www.lsjlt.com/login', 'no'], }); }, }) }); </script> </body> </html>