Help for this page

Select Code to Download


  1. or download this
    \$ # Our '$' prefix
    (?:
        # Optionally *don't* find the opening paren.
    ...
    )
    (\w+) # The middle part is captured in $2
    (?(1)\)) # Require a closing paren only if $1 matched.
    
  2. or download this
    \$ # Our '$' prefix
    ( # Capture into $1
        (?:
    ...
            \( \w+ \) # A word with parentheses around it.
        )
    )