タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

perlとLexingに関するishideoのブックマーク (1)

  • Lexing Your Data

    Lexing Your Data Jan 5, 2006 by Curtis Poe s/(?<!SHOOTING YOURSELF IN THE )FOOT/HEAD/g Most of us have tried at one time or another to use regular expressions to do things we shouldn’t: parsing HTML, obfuscating code, washing dishes, etc. This is what the technical term “showing off” means. I’ve done it too: $html =~ s{ (<a\s(?:[^>](?!href))*href\s*) (&(&[^;]+;)?(?:.(?!\3))+(?:\3)?) ([^>]+>) } {$1

  • 1