This is the command and response I'm interested in dealing with:
The reason I want this is I want to take the data, get rid of the 'device for.... [printername]: ' and just return the device URI for my printer object. Problem is I've scoured through the documentation for NSString and NSMutableString and was astounded to find nothing at all relating to regular expressions. Can anyone point me in the right direction with regard to a method for chopping off the bit of the string before the URI?
Code:
PennyMBP:~ adam$ lpstat -v
device for Brother_HL_1650_1670N_series___PennyG5: tea4cups:mdns://Brother%20HL-1650_1670N%20series%20%40%20PennyG5._ipp._tcp.local
device for Canon_iP4500_series___PennyG5: tea4cups:mdns://Canon%20iP4500%20series%20%40%20PennyG5._ipp._tcp.local.
device for EPSON_AL_C900___PennyG5: tea4cups:mdns://EPSON%20AL-C900%20%40%20PennyG5._ipp._tcp.local
The reason I want this is I want to take the data, get rid of the 'device for.... [printername]: ' and just return the device URI for my printer object. Problem is I've scoured through the documentation for NSString and NSMutableString and was astounded to find nothing at all relating to regular expressions. Can anyone point me in the right direction with regard to a method for chopping off the bit of the string before the URI?