Ok, i have a regex pattern like this /^([SW])\\w+([0-9]{4})$/
/^([SW])\\w+([0-9]{4})$/
This pattern should match a string like SW0001 with SW-Prefix an
SW0001
SW
in regex,
^
$
so if you want to match "SW" + exactly 4 digits you need
^SW[0-9]{4}$