hey there,
I am trying to test strings using regex to make sure that the string may represent a monomial.
that is, it must be 123123213x^213123.
I am having difficulties to find any helpful information on how to test for ^.
I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a complaint that ^ is not a valid escape sequence (I am using eclipse).
in case you wonder what that [.] is, it is to make sure doubles are matched for.
anyone any idea please.
thank you.