Skip to content

Instantly share code, notes, and snippets.

@jbilcke
Created February 1, 2011 17:58
Show Gist options
  • Save jbilcke/806275 to your computer and use it in GitHub Desktop.
Save jbilcke/806275 to your computer and use it in GitHub Desktop.
edit this regex to suit your GEXF
REPLACE
label="(.*)">
<attvalues>
<attvalue for="classification" value="(.*)"></attvalue>
<attvalue for="embassy" value="(.*)"></attvalue>
<attvalue for="start" value="(.*)"></attvalue>
BY
label="\1" start="\4">
<attvalues>
<attvalue for="classification" value="\2"></attvalue>
<attvalue for="embassy" value="\3"></attvalue>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment