Regular Expression For This

Soldato
Joined
12 Jun 2005
Posts
5,361
Hi there,

I was wondering if someone could construct a regular expression for me.

Basically the strings are in the format of:

Code:
<a> - S <b>\<a> - <b>x<c>.s

Where:

<a> = A string, could have spaces in it.
<b> = A number, could be more than one digit, but no spaces.
<c> = A number, could be more than one digit, but no spaces.

Everything else is fixed.

Thanks.
 
Last edited:
Code:
.+? \- S /d+\\.+? \- /d+x/d+\.s

Written off the top of my head. If you need all the <a>s to be the same then you'll need to use backreferences, otherwise hopefully that should work OK :)

arty
 
Back
Top Bottom