User-2132497554 posted
Hi folks,
I want to remove comments e.g
# This is comment
This is code1
This is code2 # This is comment
# This is comment
This is code3
This is code4
I want output like
This is code1
This is code2
This is code3
This is code4
Here is regex as below:
(\#.*)|[A-Za-z]\w+
I am not sure how to exclude or something Not operator.
Could you please help me to solve this problem?
Thank you
Ref:
https://regexr.com/