title: Regex : How to return an array of matches that need different regex?
body: <p>I have to transform txt files in json files, so I use regex to parse different type of datas. I want to record data such as first name, last name, birthday and other stuff.</p>
  
  <p>The data are formatted this way :</p>
  
  <pre><code>/Indicator /
  /[A-Z][a-z]+ /
  /[A-Z][a-z]+ /
  /[0-9]{2}\/[0-9]{2}\/[0-9]{4}/
  </code></pre>
  
  <p>More specific example :</p>
  
  <pre><code>Indicator Tom Smith 01/01/2001
  </code></pre>
  
  <p>So I know how where my info begins (it always starts with "Indicator ") and that after that there is the first name then the last name then the birthday, I also know what regex to use for theses types of data individually but not how to implement them all together.</p>
  
  <p>This is what I do for the moment and I doubt it is optimal or recommended :</p>
  
  <pre><code>let first_name = "";
  let last_name = "";
  let birthday = "";
  let j = 10; // Length of "Indicator "
  let regex = /Indicator /;
  let match = regex.exec(data);
  
  j += match.index;
  while (data[j] !== ' ')
      first_name += data[j++];
  j++;
  while (data[j] !== ' ')
      last_name += data[j++];
  j++;
  while (data[j] !== '&lt;')
      birthday += data[j++];
  console.log(first_name);
  console.log(last_name);
  console.log(birthday);
  </code></pre>
  
  <p>My question is, what regex rule should I use to get the array ['Tom', 'Smith', '01/01/2001'] with one execution of regex.exec ?</p>