This is a Journal entry by Ketwaroo

Regular Expressions are Fun

Post 1

Ketwaroo

This is what I've been up to most of today:

#</(table|thead|tfoot|caption|colgroup|tbody|td|th|div|
dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|
address|math|style|input|p|h[1-6])>((\[[^\]]*?(dtxyess|
dtxtab)\])*?\[dtxyesbr\])#si

it's actually a single line. And one of the simpler parts of it. The others just look like a flurry of \[\]?([^aed])*\\\1|B6--!\E and so on. If I posted it here it would probably trigger all sorts of parser errors.


Key: Complain about this post

Regular Expressions are Fun

More Conversations for Ketwaroo

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more