Someone who offers three solutions to mimic lookbehind's in Javascript:
http://blog.stevenlevithan.com/archives/mimic-lookbehind-jav...
Also, there seems to also be a lot of support for leveraging PHP's regex functionality on the server-side to accomplish this.