Check for a string format...

Posted by ThePower on Stack Overflow See other posts from Stack Overflow or by ThePower
Published on 2010-03-16T18:30:05Z Indexed on 2010/03/16 18:31 UTC
Read the original article Hit count: 309

Filed under:
|
|

I need an simple way to check whether a string that is sent to my function is of the form:

(x + n)(x + m) 
//the +'s can be minus'
//n and m represent a double
//x represents the char 'x'

Is there a simple string format that I can use to check that this is the form. As opposed to checking each character singularly.

The whitespace will be removed to save any confusion.

Regards

Lloyd

© Stack Overflow or respective owner

Related posts about stringformat

Related posts about c#