Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regexp unconsistent results #3932

Closed
Bonjour123 opened this issue Apr 14, 2019 · 4 comments
Closed

Regexp unconsistent results #3932

Bonjour123 opened this issue Apr 14, 2019 · 4 comments

Comments

@Bonjour123
Copy link

I'm trying to find a simple regex in the editor. It works for almost all the cases, but for the following, I can't make it work.
Here is the regexp, in an online tester

Here is the jsfiddle

Can't find the reason why it doesn't match, and how to make it match.

@nightwing
Copy link
Member

Currently multiline search works only for literal text. What are you trying to do maybe there is another way to achieve that?

@Bonjour123
Copy link
Author

Maybe yes, I don't need very extended regexp, just str1.*str2, and that all the result be selected.

-Would it be long to modify the search function for literal text, so that when a certain condition is set, it extracts str1, str2, search them and select all what is between ? In this case, in which js file the search function is ?
-The second solution is to getValue to a basic string, and make the multiline regex on this string, and return the offset of the first and last chars of the results. But then, how to select this ? Because as I know, selection works in terms of coordinates and not with offsets (don't really understand why this isn't supported though). I'm more for this solution, as it would make a multline regex possible for ace editors, which would be cool !

@Bonjour123
Copy link
Author

Bonjour123 commented Apr 15, 2019

Didn't wanted to close, bad button ^^

@nightwing nightwing added this to TODO in c9-find-replace Jul 15, 2019
@github-actions
Copy link

github-actions bot commented May 9, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants