To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / *2245 (-20)
  Re: Strip surplus white space with Perl
 
(...) I hate replying to myself, but I realize that I pasted the wrong answer into my initial response now, and totally missed the boat on my response to David. Ooops. :) This should do it: $string =~ s/(\t\t+| +|\r\r+|\n\n+|\f\f+)...&,1,1)/eg; Yes, (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Re: Book recommendations?
 
I haven't read "Cryptonomicon", so I don't know what type of book it is. One book I loved though, was "Jurassic Park". It's better than the movie, it's bigger, and has a different ending. --Tobias (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Re: GIF licensing
 
Um, well, I dunno if "GifBuilder" for Mac is a commercial program... But since I haven't done it myself, then I guess it's OK. BTW, how is Unisys going to track me down anyway? --Tobias (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek, lugnet.publish)
 
  Re: Strip surplus white space with Perl
 
(...) Ahh, but what happens if you have a carriage return followed by a space? The second method eliminates the space and leaves the carriage return, which isn't what he asked for. He wanted a way to replace multiple instances of similar whitespace (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Re: GIF licensing
 
(...) I don't think that's safe. Unisys' behavior on this point has been erratic. (24 years ago, 29-Oct-00, to lugnet.off-topic.geek, lugnet.publish)
 
  Re: GIF licensing
 
Hello, one additionally point: IMHO is the use of the GIF algorithms in non-commercial programs for free. -- Greetings, Carsten Schmitz "Kevin Loch" <kloch@opnsys.com> wrote in message news:G35CE8.Jwx@lugnet.com... (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek, lugnet.publish)
 
  Re: Strip surplus white space with Perl
 
(...) First, if you want to trim any leading and trailing whitespace, this'll do it: $foo =~ s/^\s+//; $foo =~ s/\s+$//; Then, if you need to preserve the first whitespace character and throw out the rest: $foo =~ s/(\s)\s+/$1/g; Or, if spaces (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Re: Goofy non-Lego request
 
Hi You could try: www.192.com - this is like directory enquiries (or if you can get to the UK operator, dial 192 for the phone directory enquiries. www.eyp.co.uk - if you know the company name Mike (...) (24 years ago, 29-Oct-00, to lugnet.loc.uk.en, lugnet.off-topic.geek)
 
  Re: Strip surplus white space with Perl
 
(...) Actually, I think a simpler way is: $string =~ s/(\s)\s+/$1/g; The 'g' option at the end of the regexp will actually just do the replace everywhere in the string that it can, with no real need to loop... Ain't TMTOWTDI great? :) DaveE (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Re: Strip surplus white space with Perl
 
(...) What about something like while ($string =~ s/(\s\s+)/substr($&,1,1)/e) {} ? That should replace all whitespace ([ \t\n\r\f]) that's repeated one or more times (that's the first part of the expression) with the first character matching in that (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Strip surplus white space with Perl
 
Hi, I'm looking into a quick and simple way to strip off all surplus white space from a string with Perl. If two consecutive characters are <SPACE> and <RET>, for example, it doesn't matter to me which one is preserved and which one is chopped off. (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Re: Book recommendations?
 
(...) Well, there's always the other Neal Stephenson stuff, if you haven't read it. And especially if you like Cryptonomicon, I highly recommend the books he's written with his uncle under the pen name "Stephen Bury". ("Cobweb" and "Interface"). (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
 
  Book recommendations?
 
Hi, I've recently read Neal Stephenson's novel "Cryptonomicon", which I found very entertaining. Are there anybody can think of any other books that I may enjoy? I'm not really into science fiction or fantasy. Fredrik (24 years ago, 28-Oct-00, to lugnet.off-topic.geek)
 
  Re: Goofy non-Lego request
 
(...) If you want to find a phone number for a person/business, try (URL) the UK the opposite search (numbers -> addresses) is not available to the general public. Chris (24 years ago, 28-Oct-00, to lugnet.off-topic.geek)
 
  Goofy non-Lego request
 
As part of a project I've undertaken at my job, I have to track down one of our clients in London. I'm in Pennsylvania; if the client were US-domestic, I'd know how to do Net phonesearches or even how to dial information. Is there a basic "directory (...) (24 years ago, 28-Oct-00, to lugnet.loc.uk.en, lugnet.off-topic.geek)
 
  Re: GIF licensing
 
(...) Unisys holds a patent on the LZW compression algorythm. Common GIF implementations use this. There are implementations (like libungif) that use no compression and can be used freely. If you use software that creates a GIF, and uses LZW (...) (24 years ago, 28-Oct-00, to lugnet.off-topic.geek, lugnet.publish)
 
  GIF licensing
 
I've heard about the GIF licensing fees and all that, but I've never been told the answers to my questions, so I hope you can help me. Actually, there's only one question: Am I breaking the law when I make GIF images? --Tobias (24 years ago, 28-Oct-00, to lugnet.off-topic.geek, lugnet.publish)
 
  Re: Space World Hosting
 
"Mike Stanley" <cjc@NOSPAMnewsguy.com> wrote in message news:G32Hp1.191@lugnet.com... (...) Yep. I think the problem is that Microsoft software is (generally) easy to install, so people who aren't really qualified end up doing installs of inportant (...) (24 years ago, 27-Oct-00, to lugnet.off-topic.geek)
 
  CompuMaster seminars - any good?
 
I normally shy away from one or two day seminar things but someone just handed me a flyer on a 2-day seminar/class on Windows NT security and I'm wondering if anyone here has ever had any experience with classes or seminars from this company? Its (...) (24 years ago, 25-Oct-00, to lugnet.off-topic.geek)
 
  Re: Cable Modem, Day 1: Elation and Nausea
 
(...) NO (...) I don't know if this applies to your particular cable modem setup but watch out for this one. (URL) your personal firewall set to pass the GRE packets (IP protocol type 47) used by PPTP? You also need to open tcp port 1723 for the (...) (24 years ago, 24-Oct-00, to lugnet.off-topic.geek)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR