vb.net string validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jai14
    New Member
    • Jul 2012
    • 1

    vb.net string validation

    hello dear's...
    plz clear my doubt in vb.net...

    consider 2 textbox.first one is for holding a simple statement.secon d one is for holding paragraph.if a particular word exist in both the textboxes means ,it need to prompt an error(don't forget the second textbox contains paragraph)
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Loop through every word in one textbox and search for it in the other.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      You could try using the String.Contains method to check if the word exists.

      Or you could use a Regular Expression to see if the string matches the regular expression.

      There are a lot of ways to accomplish this.

      -Frinny

      Comment

      Working...