Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created December 15, 2011 19:23
Show Gist options
  • Save legumbre/1482433 to your computer and use it in GitHub Desktop.
Save legumbre/1482433 to your computer and use it in GitHub Desktop.
(query-replace-regexp "\"description\": \\[
.*
.*
.*
.*\\]" "REPLACED!" nil (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end))) ;; C-x C-e here
"description": [
foo,
bar,
baz,
ban ]
"description": [
foo2,
bar2,
baz2,
ban2 ]
"description": [
foo3,
bar3,
baz3,
ban3 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment