Skip to content

Instantly share code, notes, and snippets.

@davidsharp
Created August 26, 2020 12:09
Show Gist options
  • Select an option

  • Save davidsharp/bef56f86de6ab8415c354a4a4d4ce10f to your computer and use it in GitHub Desktop.

Select an option

Save davidsharp/bef56f86de6ab8415c354a4a4d4ce10f to your computer and use it in GitHub Desktop.
find and replace string for turning illustrator `transform="translate(x y)"` to x and y attributes
// replace transform translate with x & y
transform="translate\(([0-9]*\.[0-9]*) ([0-9]*\.[0-9]*)\)"
x="$1" y="$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment