Skip to content

Enable regex's ^, $ and ^$ to be matched in file dialog - #314

Merged
Alexandru Dima (alexdima) merged 1 commit into
microsoft:masterfrom
Tyriar:278_blank_line_regex
Nov 23, 2015
Merged

Alexandru Dima (alexdima) merged 1 commit into
microsoft:masterfrom
Tyriar:278_blank_line_regex

Conversation

@Tyriar

Copy link
Copy Markdown
Contributor

Fixes #278

@msftclas

Hi Daniel Imms (@Tyriar), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@Tyriar

Copy link
Copy Markdown
Contributor Author

Find and replace /^/

caret_find_replace

Find and replace /$/

dollar_find_replace

Find and replace /^$/

both_find_replace

@msftclas

Daniel Imms (@Tyriar), Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, MSBOT;

@joaomoreno

Copy link
Copy Markdown
Contributor

Looks awesome.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use var in TS when let and const are available?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because const and let are not used in the file yet `var is extensively and there's not mention in the coding guidelines.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of code was written before TypeScript added support for let. We didn't do a full pass to replace all usages

@alexdima

Copy link
Copy Markdown
Member

Daniel Imms (@Tyriar) This is great! Thank you so much! ❤️

Alexandru Dima (alexdima) added a commit that referenced this pull request Nov 23, 2015
Enable regex's ^, $ and ^$ to be matched in file dialog
@alexdima
Alexandru Dima (alexdima) merged commit cef9583 into microsoft:master Nov 23, 2015
@Tyriar
Daniel Imms (Tyriar) deleted the 278_blank_line_regex branch November 29, 2015 02:23
@ghost

Deleted user (ghost) commented Sep 11, 2017 •

Copy link
Copy Markdown

Guys i Want the oposite of that if i want to find this pattern }{ nad i want to make line break like

I have this

{"index":{"_id":0}},{"index":{"_id":0}}

And i want this

{"index":{"_id":0}}
{"index":{"_id":0}}

is any wat to filter for },{ And add line break in midle

}
{

@alexdima

Copy link
Copy Markdown
Member

@atlabiz

  • search for },{
  • replace with },\n{
  • enable regex to have the \n in the replace field mapped to a newline and not to the literals \ and n.

kapture 2017-10-24 at 9 57 29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regex unable to find/replace blank lines

5 participants