Search and Replace with RegEx components in Atom editor

wintermeyer

I want to search and replace this

`https://example.com/`{.uri}

to

[https://example.com/](https://example.com/)

With vim I would do a s/(http.*){.uri}/[\1](\1)/g but that doesn't work with atom.io. How can I solve this?

speedogoo

If you Cmd-F and open the search pane, there is a ".*" button at the right side. Click it and now it's regex mode.

I find

(http.*)\{\.uri\}

and replace to

[$1]($1)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Lookbehind assertion regex in atom editor

From Dev

Programmers editor with nice multiline regex editing and search and replace?

From Dev

Iterate over all search results in Atom Editor?

From Dev

Iterate over all search results in Atom Editor?

From Dev

MySQL Regex Search and replace

From Dev

regex search with renumbering in replace

From Dev

Search and replace with lookarounds regex

From Dev

RegEx search and replace link

From Dev

RegEx search and replace link

From Dev

Vim Search and Replace - Regex

From Dev

vim regex search and replace

From Dev

Regex Help - Search and replace

From Dev

atom - How to replace in Atom without replacing some part of the search?

From Dev

How to set ATOM text editor setting find and replace to CASE SENSITIVE

From Dev

How to use regex in atom editor to combine redundant classes in CSS

From Dev

Regex for replacing class names throughout codebase in Atom Editor

From Dev

Editor with muti-line search and replace

From Dev

regex search and replace with modified result

From Dev

Search and replace dynamically in perl regex

From Dev

Regex search and replace match only

From Dev

Ruby regex search and replace array

From Dev

PHP search and replace regex pattern

From Dev

search and replace by regex in zend studio

From Dev

Search and replace with Notepad++ regex

From Dev

search and replace regex for JSON string

From Dev

Search and replace dynamically in perl regex

From Dev

Python Regex - search and replace matches

From Dev

Regex search and replace substring in Python

From Dev

Regex: Search and Replace missing tags