yamid

yamid

  • NA
  • 98
  • 0

read a word from console, and match that exact word with a given string ( c#)

May 16 2011 2:50 PM
Hi,
I want the user to pass YMF1 word from the console.
Then I need a regular expression to check the below string which includes some apostrophes:
'YMF1 ' 103200 'REAL'
and remove the "second" apostrophe in that string and return true if it can match the exact standalone word 'YMF1  which was read from the console?

( I want also to make a differentiation between YMF1 and YMF10 for example) .

thanks

Answers (2)