.exec() return only first result
See original GitHub issueHello. I have issue with returning all results to variable in JS. I build simple test, but when use
const SRL = require('srl');
const query = new SRL(query);
console.log(query.exec(query));
In console recieve:
[ 'What',
'What',
index: 0,
input: 'What is Lorem Ipsum? ... ' ]
But what about all other? And why What is 2 times?
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Select statement only returning first row in result - Stack Overflow
It only returns the first row. However I would like it to return all results. I am new to SQL-Alchemy so forgive me...
Read more >exec(3) - Linux manual page - man7.org
The exec() functions return only if an error has occurred. The return value is -1, and errno is set to indicate the error....
Read more >shell_exec - Manual - PHP
This function can return null both when an error occurs or the program produces no output. It is not possible to detect execution...
Read more >How to delete directories based on `find` output: ONLY the first ...
How to delete directories based on `find` output? I tried to remove only the first folder of result doing: find * -type d...
Read more >Python's exec(): Execute Dynamically Generated Code
The exec() function's return value is None , probably because not every piece of code has a final, unique, and concrete result. It...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Oh, its great! Thank you very much!
@GeekEdem I publish 0.2.0 to give more methods to use regex conveniently, you can upgrade package and check it out: https://github.com/SimpleRegex/SRL-JavaScript#additional