Skip to content

Search and replace possible with regex and varying content? #463

Answered by facelessuser
sojusnik asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Use capturing groups in your search pattern(). The order in which they are specified can later be represented using numbers. Capture what you want to preserve.
  2. Create your replace pattern using the numbers \1, \2, etc. to replace the part you wish to preserve.

Find:

(\[\[zotero://open-pdf/library/items/ML4WSJ8H\?page=\d+\|)°(\]\])

Replace:

(\1Isak\2)

Adapt doing whatever you need.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sojusnik
Comment options

@facelessuser
Comment options

Answer selected by sojusnik
@sojusnik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants