Regex How to match ONLY File name prefix and extension ignoring the numbers in the middle in Ruby? : <p>I've been trying to match only specific prefix and it's extension in a filename but with no luck.
Example:</p>

<p>BX-ST123456.mxf ==> I need to match only BX-ST and .mxf</p>

<p>BX-SR123456.mxf ==> this shouldn't be a match</p>

<p>BXL-ST123456.mxf ==> this shouldn't be a match</p>

<p>so basically the match should happen only if it finds the string of BX-ST and .mxf without restricting the length of numbers in the middle (ignore them) they could be 0-9 in any random.</p>

<p>Example:</p>

<p>BX-ST0.mxf ==> should be a match</p>

<p>BX-ST01.mxf ==> should also be a match and so on.</p>

<p>appreciate your help everyone</p>
