I am using the VBScript regular expressions engine. 

I have two regular expressions:

The first one replaces non `a-zA-Z0-9` chars with a dash:

`[^a-zA-Z0-9]|[-{2,}]`

e.g. `...this_string?` becomes `-this-string-`

The second one removes dash chars from the beginning and/or end of the resulting string from the first replacement:

`^-+|-+$`

e.g. `-this-string-` becomes `this-string`

I have this working perfectly now, but as two separate (but nested) regex replace calls. 

`r.replace("^-+|-+$", r.replace("[^a-zA-Z0-9]+|[-{2,}]+", o.Value, "-"), "")`

Is there a way to combine these two into a single regex replacement?