I'm trying to fetch a text document using Javascript. From the text document, I need to extract all the lines that only start with ====> . Each Line has four parts.

* ====>0012
* Some Texts - sometime with space, sometime without space also sometime with special characters.
* A nine digit number or empty space (102020900)
* Amount. Sometime Amount is just an empty space.

I need those four parts into arrays.

With my code, I can extract the first part successfully. But, I am finding it difficult to extract the other parts the way I wanted.

[Here is my text file](https://drive.google.com/file/d/1hi_Wb9j_Avx-muHGphx7Tsdz1SVWNLxp/view?usp=sharing)

Here is my code:

```
document.querySelector('#textdata').addEventListener('click', getTexts);

async function getTexts() {
  const response = await fetch('example.txt');
  const textData = await response.text();

  // First Part
  const re = /====>\d+/gim;
  const serial = textData.match(re);

  for (let i = 0; i < serial.length; i++) {
    document.querySelector('.one').innerHTML += `${serial[i]}<br>`;
  }

  // Second Part
  const me = /([a-zA-Z\s.\-\/]{1,30})/gim;
  const descr = textData.match(me);

  for (let k = 0; k < descr.length; k++) {
    document.querySelector('.two').innerHTML += `${descr[k]}<br>`;
  }
}

```

I'm not sure if regex is the best way to do it. But, I tried with regex. Any assistance would be highly appreciated.