Skip to content

Instantly share code, notes, and snippets.

@Rokko11
Last active December 10, 2015 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rokko11/d8ec5bc3a253f2cc2857 to your computer and use it in GitHub Desktop.
Save Rokko11/d8ec5bc3a253f2cc2857 to your computer and use it in GitHub Desktop.
<div id="stack-trace">other.package.MyTry.exec(MyTry.java:19)</div>
Now I need a jQuery/JS-Method which parses this Element by the Regex "\(\w*\.java:\d*\)" and modifies the content of this div to following:
<div id="stack-trace">other.package.MyTry.exec(<a href="MyTry.java:19">MyTry.java:19</a>)</div>
@Rokko11
Copy link
Author

Rokko11 commented Dec 10, 2015

So parsing something like (.*.java:##) and wrapping that with an

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment