in reply to pattern matching for string [SYN, ACK]

Are you looking for this?

m/\[SYN(?:, ACK)?\]/

What are you actually trying to accomplish?


Dave

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.