English 中文(简体)
定期致富文件 类似格式的案文,但Valying Length
原标题:Regular Expression To Find Word Document Text of Similar Format, but Varying Length

Given a sample of some possible text containing the format

$[I-VI].[1-99].[1-99].[1-99]…

我试图形成一种定期的表述,以找到所有文本格式。

因此,有些样本可能是

  • $II.4.13
  • $V.23.38.1.23
  • $IV.1.1.1.1.1

各位可以看到,案文篇幅不一,但有一些已知参数。 最深层次是7美元,总是存在,所有罗马数字/数字(最后数字除外)。

任何建议? 诚然,我目前难以确定定期表达。

我正在使用“2010年”试图在一份文件中找到这一案文,因此Microsoft Office RegEx syntax将更受欢迎;但“C#”也会被罚款,因为我可以撰写一个搜索案文和找到这一案文的方案。

最佳回答

<代码>$(>III>[V] (0-9]{1})+

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签