beta BLOG dot NET

/* bugs, features, drafts, and solutions. */

// results tagged “regex”

Sebastian blogged on 2009-12-06T16:13:41+00:00

AutoSmileys:-) Plugin for Movable Type


Freely configurable automatic raplacement of textual emoticons by image tags. AutoSmileys is an easy to use and highly customizable macro environment for Movable Type. It will replace self-defined text abbreviations by image tags when your site is published or dynamically rendered, respectively. It may be applied either within entries, comments, pages, or any other part of your site.  → read more …

# 

$tags

 = [  ];
# 

$categories

 = [  ];
# 

3 comments

, 

no trackbacks

→ view entry

Sebastian blogged on 2009-11-28T23:33:32+00:00

a wordlist folding algorithm


Assumed you wish to match a large wordlist against a huge chunk of text. As a small test case, let for, far, bar, foo, boofaz, boofar, boof, faz, foobaz, foobars, boofar be your wordlist. Now, you may apply the according regualar expression: But which way a regex engine would implement the assignment?  → read more …

# 

$tags

 = [  ];
# 

$categories

 = [  ];
# 

no comments

, 

no trackbacks

→ view entry

admin1 blogged on 2009-10-15T21:35:50+00:00

shorten by regex


While customizing my mt blog, I was wondering how to abbreviate long entry titles on particular places in a nice way. Well, mt provides template tag modifiers such as trim-to, but my aim was to do it more nicely, i.e. replacing anything behind the first three (or any other maximum) words by an ellipsis.  → read more …

# 

$tags

 = [  ];
# 

$categories

 = [  ];
# 

no comments

, 

no trackbacks

→ view entry

here goes the message.