Oct-01-2021, 06:30 AM
Using regex to count specific character in file
i have a hard time getting the right output using regex to count "$" on the file
#content in sample1.txt
i have $100 in my bank acc now
i made $20 lastnight
#desired output in sample2.txt
$ found in file: 2
i have a hard time getting the right output using regex to count "$" on the file
#content in sample1.txt
i have $100 in my bank acc now
i made $20 lastnight
#desired output in sample2.txt
$ found in file: 2