Reputation: 28294
I have the following string:
8 0 0 . Item s Payable in Connection w ith Loan
I am trying to match it using the following regular expression:
^8\\s*0\\s*0\\.
What I believe this regular expression is saying is:
However in my application, this does match my string. Can any one rpvodie assistance on why it might not be matching. I am using Java.
Upvotes: 1
Views: 91
Reputation: 31184
there's a space between you last 0
and your period. your regular expression doesn't allow for that. that's why it's failing.
try
"^8\\s*0\\s*0\\s*\\."
Upvotes: 5