Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Match and Pattern  RSS feed

 
Robert Aragon
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!