trouble with some regular expression pattern matching

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peted

    trouble with some regular expression pattern matching

    Hi,

    im having some trouble with reg expression pattern matching for
    something i think should be a straightforward test.


    Im validating the text being entered in a winforms textbox and i need
    to bring up a message in a validation test if these patterns are found
    in the text enetered in the text box.


    specifcially this combination --- {:}


    or

    this combination -- <anychar{ <anychar } <anychar>

    so it will detect any text input where an open left braces and closed
    right braces any where in the string in the above orientation. Is just
    one brace of either type is entered it should NOT be detected.


    Cany anyone help or point me in the right direction for the correct
    regex pattern matching.


    i was thinking "*{*}*" should work.

    And extactly what are these "{ }" bracket types called are they
    braces ? or brackets and what is there enum identifier in the c# Keys
    keydata enums ?

    thanks for any help

    Peted



Working...