我有一个字符串
字符串1(不包括引号) - >"我的车号是#8746253,实际上很酷"
条件 - 数字8746253,可以是任意长度
- 数字也可以紧跟一个行尾.
我想分组8746253,后面不应该跟一个点"."
我试过了,
*#(\ d +)[^.].*
这肯定会得到我的数字,但即使有一个点也会匹配,因为[.^]将匹配数字的最后一位(例如,在下面的情况下为3)
字符串2(不包括引号) - >"地球是#8746253.Kms,这是非常远的"
我想只匹配字符串1类型而不匹配字符串2类型.
我是CI和Jenkins的新手.
我正在将git项目(https://github.com/jenkinsci/git-plugin)导入我的日食,但我收到的错误是:
"Project build error: Non-resolvable parent POM: Failure to transfer
org.jenkins-ci.plugins:plugin:pom:1.480 from http//download.eclipse.org/jgit/maven
was cached in the local repository,
resolution will not be reattempted until the update interval of jgit-repository
has elapsed or updates are forced. Original error: Could not transfer artifact
org.jenkins-ci.plugins:plugin:pom:1.480 from/to jgit-repository
(http//download.eclipse.org/jgit/maven): null to
http://download.eclipse.org/jgit/maven/org/jenkins-ci/plugins/plugin/1.480/plugin-
1.480.pom and 'parent.relativePath' points at wrong local POM"
Run Code Online (Sandbox Code Playgroud)