DJpennywhistle
Programmer
I need to match a chunk of data that covers more than 1 line. I've tried using the //m option but I can't get it to work. The data I want to get is in the form:-<br><br> (net (rename bypass "bypass"
<br> (joined<br> (portRef bypass)<br> (portRef IPAD (instanceRef IPAD_bypass))<br> (portRef I (instanceRef IBUF_bypass))<br> (portRef O (instanceRef IBUF_bypass))<br> (portRef D (instanceRef FDC_bypass))<br><br><br>Where bypass is a variable. So I've used the match:-<br><br> if(/\(net\s*\(rename\s* $useful/)<br><br>to match the first line where $useful has the value bypass but I need to match the whole damn lot so I can operate on it.<br><br>Actually what I want to do is cut the last two lines and paste them somewhere else but I think I'll be able to work out how to do that myself.<br><br>Thanks <p>Gordon Bell<br><a href=mailto:gordon.bell@xilinx.com>gordon.bell@xilinx.com</a><br><a href= > </a><br>