<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I'm having a bit of trouble trying to work out if it's possible to have compound regular expressions in a snippet.<BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Basically, I want to replace all spaces in a tab-stop with hyphens, whilst also lowercasing the whole string -- two things I can happily do separately:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">${1/.*/\L$0/}</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">${1/ /-/\g}</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>but can't seem to work out if it's possible to do both at the same time. I've tried replacing the tab-stop in one expression with the output from another:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">${</FONT><FONT class="Apple-style-span" color="#800080"><FONT class="Apple-style-span" face="Courier">${1/ /-/\g}</FONT></FONT><FONT class="Apple-style-span" face="Courier">/.*/\L$0/} </FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>but it doesn't work. I know it's possible if I create an intermediate tab-stop like this:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier">${2:${1/.*/\L$0/}}</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">${2/ /-/\g}</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>but I don't want to do this as I have no use for the intermediate value.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any help would be greatly appreciated! Thanks in advance.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Jordan</DIV></BODY></HTML>