All Questions
Tagged with javascript regular-expression
4 questions
0
votes
1
answer
247
views
Get % of how much of a javascript file is commented out
I'm wanting to check if files are more than 50% commented out with javascript style commenting of //. My idea is to count the number of lines in the file and then count the number of // and do some ...
0
votes
1
answer
260
views
Find and replace the columns of matched and non-matched lines with a character
I have a csv file with a bunch of numbers ranging from 500 to 500,000 and would like to replace the matches with 1 and mismatches by shifting the mismatched content to right simultaneously shifting ...
4
votes
1
answer
246
views
Search file name within file
Someone put a lot of malicious code onto every single wordpress instance on my server. For the second time. (At least) Every js file has been modified. There is a pattern though, the code always looks ...
0
votes
1
answer
55
views
To visualise systematically look-behinds
I am using Regexr to visualise my regexes now.
I need look-behind but Javascript does not support it, example code here.
The project code base seems to be dependent Javascript (NodeJS) in Github.
I ...