The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

[gc]r[ea]p by Egaeus 2007-01-22 11:37:32
I have a couple of grep questions.

First, does grep support multiline mode? I see mention of it in regex documentation, but not how to use it.

Second, I have a file with the following lines (or something very similar):

< td align="left" valign="middle" bgcolor="#ffffff" width=80% &rt

< font size="2" color="#000000" face="Arial, Helvitica, sans-serif"&rt < a href="mon_hskp.html" target="Summary" (null)&rt< b&rtSystem Alarms</b&rt</a&rt

I hope I got those tags right. Anyway, why does grep \s filename not match the first line?

Yeah, I know the subject matches grap and crep too. :)

[ Reply ]
  Dang. by Egaeus2007-01-22 11:40:01
  My first thought... by imperito2007-01-22 11:42:56
    Nothing terribly interesting by Egaeus2007-01-22 11:53:30
      A note on grokking HTML with regexes. by Pic2007-01-22 12:02:31
        My thoughts exactly but if you are just looking... by CALL-1982007-01-22 12:12:26
          Since I know the attribute names by Egaeus2007-01-22 12:15:56
            That has gotten me out of a few tight spots... by CALL-1982007-01-22 12:28:00
        I was afraid someone was going to say that by Egaeus2007-01-22 12:14:43
  IDGI What is \s supposed to match? by talon07202007-01-22 11:51:48
    Whitespace by Egaeus2007-01-22 11:57:04
  I think I figured out what I can do by Egaeus2007-01-22 13:41:14

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)