Using Match and Pattern is great, but when trying to match a string like the following, it does NOT compute.
I want to match money amounts in a database file, amounts like "$154.00" without the double quotes, obviously.
The dollar sign is an end of line character. Any ideas?
posted 11 years ago
The dollar sign is a "meta-character", which will need to be escaped if you want to use it literally. You do that be preceding it with a backslash, like "\$". Other meta-characers are ^, ?, *, +, und . (the dot).