Regular Expressions

| | Comments (0) | TrackBacks (0)

Strip HTML tags from a string $string =~ s/<([^>]|\n)*>//g ;

Strip leading spaces from a string $string =~ s/^\s+// ;

Strip trailing spaces from a string $string =~ s/\s+$// ;

0 TrackBacks

Listed below are links to blogs that reference this entry: Regular Expressions.

TrackBack URL for this entry: http://borisbrodsky.com/mt/mt-tb.cgi/8

Leave a comment

About this Entry

This page contains a single entry by published on September 21, 2007 2:55 PM.

useful UNIX/UBUNTU tools was the previous entry in this blog.

Axel - A light download accelerator for Linux. is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

  • My Photo Album

    Powered by Movable Type 4.01