There are so many resources that it is confusing and many are commented with users saying this does not work etc.
can any开发者_如何学运维 one please give me a perfect regex for Mask="h:mm tt" MaskType="DateTime" to be used in my silverlight project
If you want to match something like this: Mask="h:mm tt" MaskType="DateTime"
This is a regex for it:
Mask="(1[0-2]|[0-9]):([0-5][0-9]) (am|pm)" MaskType="(.+?)"
Your match will contain:
- hours
- minutes
- AM/PM
- value of MaskType
You should specify in the question what you want to match for.
精彩评论