腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Mockito的
Matcher
vs Hamcrest
Matcher
?
、
、
这将是一个简单的,但我找不到它们之间的区别和使用哪一个,如果我在我的类路径中包含了这两个库?
浏览 0
提问于2011-12-02
得票数 43
回答已采纳
4
回答
使用spacy.
matcher
.
matcher
.
Matcher
.add()方法的问题
、
我在尝试使用spacy
matcher
时遇到错误TypeError: add() takes exactly 2 positional arguments (3 given) spacy.
matcher
.
matcher
.
Matcher
.add(
浏览 33
提问于2021-02-12
得票数 5
2
回答
我需要
Matcher
<String> containsString(
Matcher
<String>
matcher
),我做错什么了吗?
、
我想这样做:但是我找不到一个需要另一个
Matcher
<String>的
Matcher
<T>。
浏览 5
提问于2014-11-05
得票数 1
回答已采纳
3
回答
这些语句是等价的吗?
、
、
、
matcher
.matches() && !
matcher
2.matches() && !
matcher
3.matches() && !
matcher
6.matches() && !
matcher
7.matches()
浏览 6
提问于2012-09-14
得票数 4
回答已采纳
1
回答
如何使用map和match执行我的代码部分?
、
、
我想要执行这部分代码,因为之前我有3个IF对应的匹配,比如 if (
matcher
1.find()) { } myMap.put(
matcher
2.group(1),
matcher
2.group(2)} m
浏览 10
提问于2020-03-27
得票数 1
回答已采纳
2
回答
Hamcrest CombinableMatcher的评价顺序
、
、
我想为像
matcher
_1 AND
matcher
_2 OR
matcher
_3 and
matcher
_4这样的匹配器写一个逻辑,其中
matcher
_i只是hamcrest匹配器的占位符。我决定像这样用CombinableMatcher写它- new CombinableMatcher<String>(
matcher
_1).and(
matcher
_2).or(
matcher
_3).and(
matcher
_4) 现在,问题
浏览 21
提问于2021-08-23
得票数 0
回答已采纳
1
回答
Java模式匹配器:创建新的还是重置?
、
、
、
matcher
; // Declare but not initialize a
Matcher
{
浏览 3
提问于2012-07-09
得票数 26
回答已采纳
1
回答
在for循环中使用grepl()进行模糊匹配
我有两个像这样的数据帧:
matcher
<- data.frame(lapply(
matcher
, as.character), stringsAsFactors=FALSE)
浏览 0
提问于2017-04-29
得票数 0
回答已采纳
2
回答
模式/匹配Java,非零组计数但检索错误?
、
、
我的
matcher
.groupCount()给了我4,但是当我使用
matcher
.group(0),.,
matcher
.group(0),它给了我一个错误。以下是我的代码:
Matcher
matcher
1,(GeoIP[0][0]);
matcher
1
浏览 7
提问于2014-01-08
得票数 6
回答已采纳
1
回答
将字符串中的每一个数字增加1。
private static void getMethod(String input) { StringBuffer sb = new StringBuffer();
matcher
.appendReplacement(sb, String.va
浏览 1
提问于2014-07-01
得票数 0
回答已采纳
1
回答
为什么这个正则表达式需要很长时间才能执行?
、
Pattern$GroupTail.match(
Matcher
, int, CharSequence) line: 4717Pattern$GroupHead.match(
Matcher
, int, CharSequence) line: 4658) line: 4717 Pattern$GroupTail.match(
Matcher
, int, C
浏览 0
提问于2018-05-24
得票数 6
回答已采纳
2
回答
池化问题:项目多次借用
、
由于传递的正则表达式经常被重用,所以我尽量不在每次都编译它,所以我将它保存在一个Map中,其中键是正则表达式,值是
Matcher
对象的List (这样每个线程都有自己的
Matcher
实例)。下面的代码片段如何设法两次返回相同的
Matcher
...有时候?
Matcher
matcher
= matcherQueue.poll(); // No matchers(
matche
浏览 1
提问于2012-01-20
得票数 1
回答已采纳
2
回答
Java模式匹配器不像预期的那样用于regex。
、
、
、
1) Pattern pattern = Pattern.compile("34238"); 34238"); System.out.println("ok");$");
Matcher
<em
浏览 2
提问于2016-07-20
得票数 2
3
回答
简单的java模式匹配问题?
、
如何才能与insert...name匹配
Matcher
matcher
= Pattern.compile*name").
matcher
(x); System.out.print(
matcher
.group(0));
matcher
*name").
matche
浏览 4
提问于2018-01-10
得票数 1
回答已采纳
1
回答
正则表达式显示未找到匹配项,这只是一个简单的表达式
try{ Pattern pattern = Pattern.compile("hellio");
matcher
.matches();try{ String
浏览 0
提问于2014-09-19
得票数 0
1
回答
java中的REGEX错误
、
(String regex, String source) { ifdouble res = 0.0; //
Matcher
matcher
= Pattern.compile("\\s(.*?),").
matcher
(splitData);
Matcher<
浏览 4
提问于2016-09-19
得票数 1
回答已采纳
1
回答
Java只有数字和。或者,所需数字
、
这是我的代码: input="a";
matcher
= clazz.pattern.
matcher
(inputSystem.out.p
浏览 2
提问于2013-03-15
得票数 0
回答已采纳
2
回答
具有先行失败的Java RegEx
、
、
p.
matcher
("ABC!").find()); assertFalse(p.
matcher
("blah/ABC!p.
matcher
("ABC!").find()); assertFalse(p.
match
浏览 3
提问于2011-02-18
得票数 1
回答已采纳
1
回答
在Rspec中编写匹配器
、
它提供的组合匹配器列表如下:include(
matcher
,
matcher
)end_with(
matcher
)match(
matcher
)change {}.by(<e
浏览 0
提问于2018-09-24
得票数 1
回答已采纳
1
回答
java.util.regex.
Matcher
::useAnchoringBounds是如何工作的?
、
我试图利用
Matcher
功能"useAnchoringBounds“。但是,我看不到将它从默认值'true‘设置为'false’的任何效果。…
matcher
.useAnchoringBounds(false); System.out.println(
matcher
.find() + " "
浏览 4
提问于2020-04-13
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Java网络爬虫-你必须要了解的正则表达式
Java正则表达式匹配所有特殊字符的方法详解
Java使用正则表达式获取字符串中的手机号
正则表达式
正则表达式-JAVA成长之路
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券