Syntax error, unrecognized expression: ^

Syntax error, unrecognized expression: ^


I run this command $("^.WasPrice") which suppose to find the class
that starts with WasPrice. The actual class name is "WasPrice
PriceM". My issue is being to select a class with a space. I can't
figure out how to escape a space character to select such classes. So
I decided to use the "^" which selects anything that starts with the
characters that follow. This seems to work fine on some pages but
fails with a syntax error on others.
Any ideas and help would be greatly appreciated.
Thanks,
Roy