首页 \ 问答 \ VSTS中的GIT子模块在线?(GIT Submodules in VSTS online?)

VSTS中的GIT子模块在线?(GIT Submodules in VSTS online?)

我有一个带有git repo的VSTS项目。 repo有一些子模块,这些子模块也是软件项目开发的一部分。

有没有办法在同一个VSTS项目中创建子模块? 另一个选择是在子模块的VSTS项目和使用子模块的项目之间拆分开发任务,这是不理想的,因为就发展而言,两者之间存在很多重叠。


I have a VSTS project with a git repo. The repo has some submodules that are also required as part of the software projects development.

Is there a way to create submodules inside the same VSTS project? The other option would be to split the development tasks between a VSTS project for the submodule and the project using the submodule which isn't ideal as there's a lot of overlap between the two as far as devleopment goes.


原文:https://stackoverflow.com/questions/47618465
更新时间:2022-05-03 09:05

最满意答案

这将匹配包含2个或更多单词的字符串:

/([a-zA-Z]+\s?\b){2,}/g你可以去http://www.regexr.com/并测试它

PHP:

$string = "i dont know , do you know?";
preg_match("/([a-zA-Z]+\s?\b){2,}/", $string, $match);

echo "<pre>";
print_r($match);
echo "</pre>";

注意:不要在PHP代码中使用/ g


This will match for string that contains 2 words or more exactly:

/([a-zA-Z]+\s?\b){2,}/g you can go http://www.regexr.com/ and test it

PHP:

$string = "i dont know , do you know?";
preg_match("/([a-zA-Z]+\s?\b){2,}/", $string, $match);

echo "<pre>";
print_r($match);
echo "</pre>";

Note: do not use the /g in the PHP code

相关问答

更多
  • 使用\b作为单词边界。 /\bHi\b/ Use \b for the word boundary. /\bHi\b/
  • 这个问题就是为什么你应该总是指定你正在使用的正则表达式的味道的一个很好的例子。 大多数正则表达式都提供了一种匹配单词边界的方法,其中大多数都使用\b来表示。 根据此页面 ,wxRegEx允许您选择以下三种风格之一:BRE,ERE或ARE。 其中,只有ARE支持字边界,它使用\y ,而不是\b 。 假设您在编译时指定wxRE_ADVANCED ,此正则表达式将匹配包含good , better或best之一的任何字符串: \y(good|better|best)\y 从您使用的示例来看,我认为您可能会将正则 ...
  • 你可以用 \b[a-z0-9A-Z]*__\w*\b|(\b[A-Za-z0-9]\w*[A-Za-z0-9]\b) 并使用第一组,请参阅regex101.com上的演示 。 在 Python这可能是 import re rx = re.compile(r'\b[a-z0-9A-Z]*__\w*\b|(\b[A-Za-z0-9]\w*[A-Za-z0-9]\b)') words = ['a__a', '123dfgkjdflg4_', 'ad', '12354', '1246asd__', 'test ...
  • 这可能是你之后的事情: iphone|ipod|android(?!.*?gt-p)(?:\s*mobile)? https://regex101.com/r/xT8rD4/1 它将允许android和android mobile不跟随gt-p 。 如果它应该只允许android mobile ,这是一个简单的修复。 This might be what you're after: iphone|ipod|android(?!.*?gt-p)(?:\s*mobile)? https://regex101 ...
  • 这将发现由空格包围的2个字母单词,或者如果该句子以2个字母单词开始,在这种情况下,它将会被找到。 因此,“He”和“it”都将被发现。 (( .. )|(^.. )) 编辑 - 更深入的解释 搜索2个字母的单词,我们使用。 (点),因此我们有“..”,但是这会找到任何2个字符,所以我们需要用空格包围,所以我们搜索“..”,因此只有2个字符被包围通过空格,这将被发现。 但现在我们有一个新问题。 句子中的前两个字母单词没有空格。 所以它不会被发现。 因此我们添加| (或)去查找相同的表达式,除了这次我们用^来 ...
  • 每当我想测试不同的正则表达式时,我都会使用http://regex101.com 。 这是我想出的一个,我相信你正在寻找的东西。 var text = "visionproof vision proof threevowelswouldworktoo queued", regex = /\w*[aeiou]{2}\w*[aeiou]{2}\w*/ig; console.log(text.match(regex)); \ w匹配单词字符。 因此,它匹配0个或更多单词字符,后跟2个元音,后跟0个 ...
  • 我不确定你使用的语言是什么,所以我将提供一个关于如何做的高级概述。 尝试用空格分割字符串(即用/\s+/分割),然后将每个部分与/^[a-zA-Z]+$/匹配。 I'm not sure what language you're using, so I'll provide a high-level overview of what to do. Try splitting the string by whitespace (i.e., split by /\s+/), then match each pa ...
  • 这将匹配包含2个或更多单词的字符串: /([a-zA-Z]+\s?\b){2,}/g你可以去http://www.regexr.com/并测试它 PHP: $string = "i dont know , do you know?"; preg_match("/([a-zA-Z]+\s?\b){2,}/", $string, $match); echo "
    ";
    print_r($match);
    echo "
    "; 注意:不要在PHP代码中使用/ g This will match f ...
  • 抱歉窃取他人的评论,但它似乎确实有效! 在Perl / PCRE中,您可以使用对带有(?n)的捕获组中的子模式的引用,其中n是捕获组的编号。 所以:(一|二|三|四)。*(?!\ 1)(?1)。 在最坏的情况下,当您知道快捷键ctrl + c和ctrl + v时,您不必输入两次所有内容 - Casimir et Hippolyte 4小时前 % pcretest PCRE version 8.35 2014-04-04 re> #(one|two|three|four).*(?!\1)(?1)# d ...
  • 您需要使用不区分大小写的标志并将+替换为* : /\b\w*oana\w*\b/i 请参阅正则表达式演示 (可以使用或不使用全局修饰符,具体取决于正则表达式引擎)。 不区分大小写的修饰符可以在一些正则表达式引擎中作为内联选项传递 - (?i)\b\w*oana\w*\b 。 这里, \b - 单词边界 \w* - 0+单词字符 oana - 单词中所需的char字符串 \w* - 0+单词字符 \b - 单词边界 You need to use a case insensitive flag and re ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)