English 中文(简体)
IPA子
原标题:parse out wikipedia s IPAc
  • 时间:2012-05-04 18:18:04
  •  标签:
  • java
  • regex

i d 仿照教育促进机构模板,从一个维基百日标志中添加内容,例如:

   Konjac    ({{IPAc-en|lang|pron|ˈ|k|oʊ|n|j|æ|k}})

Konjac (English pronunciation: /ˈkoʊnjæk/)

   Konjac    ({{IPAc-en|lang|pron|ˈ|k|oʊ|n|j|æ|k}} {{respell|KOHN|yak}})

Konjac (English pronunciation: /ˈkoʊnjæk/ kohn-yak)

  Konjac   is pronounced {{IPAc-en|ˈ|k|oʊ|n|j|æ|k}} in English.

Konjac以英语宣布。

要求摘录这一内容的法规是什么? 我不知道如何与可以但可能无法做到的东西相配(条码)。

谢谢。

最佳回答

我将尝试:

IPAc-en(?:w|[|])+.(?:[|]|([^}]))+(?:}}s*{{respell(?:[|]|([^}]))+)?

它应当与主要的通义和选择性的通话相匹配。

两个表层的配对将在捕获组中进行,因此,你应当能够从 j获得。

解释:

  • IPAc-en(?:w|[|])+. - match the beginning and then word characters or the pipe as many times as you can. The match one other character (it s the funny one where pronounciation starts). Don t capture anything.

  • (?:[>>>>>+ - 匹配管道(登革阵)或不属于封闭式涂料的任何东西(封顶——你想要的特性)。 直到扼杀结束或直到你找到?”

  • (?:}}s*{{respell(?:[|]|([^}]))+)? - then optionally match the brackets and respell text and use the same logic as above to capture the letters.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签