title: How can I split string in Java
body: <p>I have <code>String =  March2022</code>
  and I want to split it into two words March and 2022 but the March word keeps changing based on the month sometimes April or June as well the year sometimes 2023 or 2024, how can I split it to</p>
  <pre><code>String month = March
  String year = 2022
  </code></pre>
  <p>or</p>
  <pre><code>String month = April
  String year = 2024
  </code></pre>
  <p>thanks in advance</p>
  <p>I tried</p>
  <pre><code>month.split(&quot;\[0-9\]&quot;)\[0\];
  year.split(&quot;\[A-z\]&quot;)\[0\];
  </code></pre>
  <p>but does not work</p>