Tuesday, 13 August 2013

Remove everything between ? and # in string

Remove everything between ? and # in string

Ive got this string:
http://localhost:8080/Test/index.html?node=station:|slot:/gooberVille/Neverland/Hola#/overview/standard
And I want to remove everything between the first instance of '?' and the
first instance of '#' following '?'.
I thought about slice() for awhile, but I dont think that is gonna cut it.
So punny.
Thanks!

No comments:

Post a Comment