title: RegEx in Batch File
body: <p>Hey I'm trying to create a function that parses a string passed via a browser protocol. It's a "callto://" protocol and it is in this format: "callto://5551234567/" with the persons phone number inside there. I need to extract the number and pass it to another program that dials the number. The syntax for that other program is like this: "CallClerk.exe dial=5551234567=".</p>
  
  <p>I'm a beginner to batch however, and can't figure out exactly what to do. Here's my current code:</p>
  
  <pre><code>@echo off
  set var=%1
  set number=theirphone
  FindStr /R "callto://(..........)/" %var% &gt; %number%
  start C:\Program Files (x86)\CallClerk\CallClerk.exe dial=%number%=
  Exit /B
  </code></pre>
  
  <p>Thanks for the help!</p>