开发者

Regular Expression in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its cur开发者_开发百科rent form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Using regular expression what would be the best way to find an unknown pattern in a string? Is this even possible using Regex, I would just like a bit of guidance.


I think you are confused about what regular expressions are for. They do not determine underlying repeating/mathematical/musical/etc. patterns in data; they find matches to a specific pattern.

So if I understand your question correctly, then, no, this is not possible using a RegEx.


You can download Expresso here:

http://www.ultrapico.com/

Play with the tool and learn more about regular expressions.


Yes it is possible.

If the patterns that you want to match are unknown, then you can always match you input string against a set of 'known patterns' and discard the unmatched strings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜