A
A
anonymous2017-10-31 17:53:40
.NET
anonymous, 2017-10-31 17:53:40

How to make different groups in Regex?

<end-date type="date">2017-10-30</end-date>
    <frequency>daily</frequency>
    <data type="array">
      <datum type="array">
        <datum type="date">2017-10-30</datum>
        <datum type="float">67.8</datum>
        <datum type="float">67.93</datum>
        <datum type="float">67.1</datum>
        <datum type="float">67.49</datum>
        <datum type="float">846605.0</datum>
        <datum type="float">0.0</datum>
        <datum type="float">1.0</datum>
        <datum type="float">67.8</datum>
        <datum type="float">67.93</datum>
        <datum type="float">67.1</datum>
        <datum type="float">67.49</datum>
        <datum type="float">846605.0</datum>
      </datum>
      <datum type="array">
        <datum type="date">2017-10-27</datum>
        <datum type="float">67.81</datum>
        <datum type="float">68.01</datum>
        <datum type="float">67.41</datum>
        <datum type="float">67.97</datum>
        <datum type="float">1440956.0</datum>
        <datum type="float">0.0</datum>
        <datum type="float">1.0</datum>
        <datum type="float">67.81</datum>
        <datum type="float">68.01</datum>
        <datum type="float">67.41</datum>
        <datum type="float">67.97</datum>
        <datum type="float">1440956.0</datum>
      </datum>

How to write a pattern so that these numbers between datums are in different groups?
check on regex101.com

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2017-10-31
@anonymouss

Why regexp if it's XML?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question