title: UK Mobile phone and UK landline regex
body: <p>I have the following 2 regex for UK mobile phone number and for UK landline numbers respectively-</p>
  
  <pre><code>^0(7\\d{9})\$
  
  ^0([1-6]\\d{8,10})\
  </code></pre>
  
  <p>I need to combine them into one regex to validate an input field using JavaScript to be any UK mobile or landline. I’ve tried using the | (pipe symbol) for ‘or’, but that’s not working and doesn’t recognise either of them.
  Anyone any suggestions as to how best to combine.
  Many thanks in advance,</p>