Hi There
Someone helped me earlier with this regex:
checkxls = checkxls.match(/'[^']*'(?:, '[^']*'){13};/g);
The purpose is to capture a exact patter like this
'', '', '', '', '', '', '', '', '', '', '', '', '', '';
Now I want to do the same thing but just with a pattern like this
('.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?'),
I am not sure how to modify the regex to capture the expression like above
checkxls = checkxls.match(/\('[^']*'(?:, '[^']*'){13}\),/g);
i have tried it like above inserting \(
and \)
but it does not seem to help me...
I want to match only the exact pattern like this
('.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?', '.*?'),
and if it is like this
('sometext', '0', '', ''),
<< I want to get removed