the (Edge|) is unnecessary in this line since the .* matches it.

this should probably simply be (Edge)?(S\d+-)?[45][34][01]