我有一个文本文件,文件内容为
CGSize kbSize = [[[sender userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size;
NSTimeInterval duration = [[[sender userInfo] objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue];
CGFloat height = UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation]) ? kbSize.width : kbSize.height;
[UIView animateWithDuration:duration animations:^{
UIEdgeInsets edgeInsets = _generalTableView.contentInset;
edgeInsets.bottom += height;
_generalTableView.contentInset = edgeInsets;
edgeInsets = _generalTableView.scrollIndicatorInsets;
edgeInsets.bottom += height;
_generalTableView.scrollIndicatorInsets = edgeInsets;
}];
我希望使用c#通过正则表达式返回文本块的数组,数组结果有三个项目:
开始= 0001-测试-1
端= 0001-测试-1开始= 0002-测试-2
端= 0002-测试-2开始= 0003-测试-3
端= 0003-测试-3
正则表达式如何为这种情况写作?
答案 0 :(得分:0)
答案 1 :(得分:0)