in Education by
As an input I've got a plain SQL query smth like: select * from ( select * from Table where id in (1,2,3,4,5,6,642,7,8,9) or another_id in (1,2,3,4,5,6, 34 ,7 , 8,9)) where yet_another_id in (1,2) I want to find all IN clause statements where the amount of arguments passed in is greater than XXX. So far I've came up with this solution. ^.*\s*+(?:in)+\s*+(\((?:\s*+\d+\s*+\,?+){XXX,}+\){1}).*$ where XXX is the number of arguments. Obviously, the first part: ^.* eats all IN clause statements except the last one. How can I fix that? Any suggestions how can I improve the regex? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Try this here \bin\b\s*(?:\((?:\s*\d+\s*\,?){5,}\)) So I removed some stuff from your expression and fixed an obvious error (\(?: where you escaped the wrong bracket. The \b is a word boundary. This is working now for me here on Regexr

Related questions

0 votes
    As an input I've got a plain SQL query smth like: select * from ( select * from Table where id ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    As an input I've got a plain SQL query smth like: select * from ( select * from Table where id ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    As an input I've got a plain SQL query smth like: select * from ( select * from Table where id ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    Which of these methods return a smallest whole number greater than or equal to variable X? (a) double ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Consider 5 independent Bernoulli.s trials each with probability of success p. If the probability of at least one failure ... 11 12 ,1] Select the correct answer from above options...
asked Nov 16, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to input any age and determine whether the age is valid or  invalid. If age is ... is valid otherwise invalid. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    If the mean and the variance of a binomial variable X are 2 and 1 respectively, then the probability that X takes ... one is equal to: Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
0 votes
    Which of these is returned by greater than , less than and equal to operators? (a) Integers ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
0 votes
    Two dice are thrown. Find the probability that the sum is 8 or greater than 8, if 3 appears on the first die. (a)\ ... \(\frac{7}{8}\) Select the correct answer from above options...
asked Nov 19, 2021 in Education by JackTerrance
0 votes
    Two unbiased dice are thrown. Find the probability that the sum of the numbers appearing is 8 or greater, if 4 ... on the first die. Select the correct answer from above options...
asked Nov 17, 2021 in Education by JackTerrance
...