Perhaps a regex tutorial can help you get more of an idea how to code them. I've always found this site to be extremely helpful.
http://www.regular-expressions.info/
Code:
img src="index-\d+_\d+.jpg
will catch all the numbers.
\d represents a set of [0-9], or any number. The plus repeats it one or more times. \d+ represents any non-decimal number of arbitrary length.