SmartCheck tool at: SmartChek: Static Analysis of Ethereum Smart Contracts suggests detection of 'var' key word in the smart contract by searching the assignment statement such that the Left Hand Side of assignment statement contains var keyword and Right Hand Side contains the integer value. But it says usage of search string: (matches ˆ[0-9]+$). I can’t understand the use of ‘$’ sign in the above search string.
Some body please guide me.
$
means the end of the string. The web has a lot of resources for learning about regular expressions. But FYI, thevar
keyword doesn't exist anymore in current versions of Solidity.