Regex.Matches支持U-SQL [英] Regex.Matches Support in U-SQL

查看:103
本文介绍了Regex.Matches支持U-SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常长的字符串,其中包含很少的文件名,我想提取所有文件名并忽略其余的数据。

I have a very long string which contains few file names, I would like to extract all file names and ignore rest of the data.

我有正则表达式来查找所有文件名但不知道如何提取所有文件名并将每个文件名转换为单独的行。

I have regex for finding all file names but not sure how can I extract all file names and convert each into individual row.

任何人都可以指出我正确的方向?

Anyone can point me in correct direction?

谢谢,

Dilkush

谢谢,Dilkush Patel Microsoft SQL开发人员支持Microsoft Corporation

Thanks, Dilkush Patel Microsoft SQL Developer Support Microsoft Corporation

推荐答案

您好Dilkush Patel并感谢您的提问。

Hello Dilkush Patel and thank you for your question.

U-SQL是
与C#
紧密结合,因此您可以尝试使用 C#正则表达式能力。 (System.Text.RegularExpressions在预先加载的命名空间下列出
。)

U-SQL is tightly coupled with C#, so you could try using C# regex abilities. (System.Text.RegularExpressions is listed under preloaded  Namespaces).

如果找不到适合您需求的现有运营商,您可以添加自己的扩展名,例如:

导入Python
以使用Python的Regex。



If you cannot find an existing operator that suits your needs, you can include your own extensions, such as importing Python to use Python's Regex.


这篇关于Regex.Matches支持U-SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆