Hello,
Need a pattern for the problem. please check the last comment in the below link
Java Programming - ***Need Regex for a pattern
its urgent. Any assistance is highly appreciated.
Printable View
Hello,
Need a pattern for the problem. please check the last comment in the below link
Java Programming - ***Need Regex for a pattern
its urgent. Any assistance is highly appreciated.
Hello,
I have got a solution for JS and HTML files
HTML pattern to identify all the comments :
\\<![ \\r\\n\\t]*(--([^\\-]|[\\r\\n]|-[^\\-])*--[ \\r\\n\\t]*)\\>
JS Pattern to identify all the comments (single, block..etc)
(?:/\\*(?:[^*]|(?:\\*+[^*/]))*\\*+/)|(?://.*)
So, here i will remove all the commented code and then, find the pattern (object.device.load...) in the uncommented code. Its easy to find it.
Thanks for all your valuable inputs.