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

RegEx documentation? #327

Closed
peoute opened this issue Jan 23, 2022 · 6 comments
Closed

RegEx documentation? #327

peoute opened this issue Jan 23, 2022 · 6 comments

Comments

@peoute
Copy link

peoute commented Jan 23, 2022

I couldn't find a reference to the implementation of RegEx in find/replace. I saw where to turn it on in the app, but couldn't get it to find or replace newlines with \n.

Is this possible?

@deepkrg17
Copy link
Contributor

You can find line ends using RegEx with '$' .

@peoute
Copy link
Author

peoute commented Jan 24, 2022

Thanks. I did see it recognized ^ for beginning and $ for line end, but I was actually wanting to replace all spaces with \n for new lines to put everything on its own line.

Any place I can see what all RegEx patterns work?

@deepkrg17
Copy link
Contributor

It is simple JavaScript RegEx.

And RegEx is almost same for all languages.
All main expressions are same.
You can learn from any resources like w3schools, MDN..

@peoute
Copy link
Author

peoute commented Jan 24, 2022

Ok. I could not get it to recognize new line. Do you expect it should? I tried:
\n
\n
/\n/

I could use $ to find the end, but that still wouldn't help with replacing with newline.

@GrennKren
Copy link

GrennKren commented Oct 18, 2022

I also can't replace new line using $ to \r (cartridge return) to make the entire code fit on one line. 
\r just literally replaced as \r and not catridge return.

@sekedus
Copy link

sekedus commented Nov 18, 2024

Tracking this in existing issue #280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants