Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: pattern matching for string [SYN, ACK]

by GrandFather (Saint)
on Sep 14, 2006 at 04:39 UTC ( [id://572862]=note: print w/replies, xml ) Need Help??


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

Which of the following strings ought match:

[SYN] [syn] [Syn] [SYN, ACK] [SYN] [SYN, ACK] [ACK] SYN SYN, ACK ACK

What pattern did you try specifically? The following pattern may be what you want:

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

Update: couple more test strings added


DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://572862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found