Attempt 1 is close, and reading the file as done in Attempt 2 looks fine.
The search needs to be “matching” (matching = regex), and you need to search for \d\w
.
And then you need to check the variable you are using in the For Each (S
) in the Switch statement. You should have just one Switch action, testing variable S
, and multiple entries.
Something like: