Blogs

Perl regex - What escape sequences can I use in Perl regular expressions?

You can do many crazy things with Perl regular expressions, but many times you just need to use an escape character (or escape sequence) in a regular expression. I'm often asked what escape sequences you can use in Perl regular expressions, so without any further ado, here is a simple list of "special" characters (such as the [Tab] character) can be matched by the Perl regular expressions:

Perl newline, tab, and other special characters

I won't say that this is a complete list, but I think this is a list of the most popular backslash characters (also known as escape sequences) that can be used in Perl strings. 

A Perl killall command

I was looking for a nice program that would let me kill a bunch of related processes on a Windows PC, similar to the way the killall command works on Linux. (I find this very useful when I'm testing apps and I have a bunch of windows open.)

Recent Perl tutorials (Tue, Aug 5, 2003)

Cool, I've been back to Perl for a few days. I'd forgotten what a cool language it is. Here are two brief Perl tips related to my recent work:

Use Perl here documents to print multiple lines of output

Summary: How to use Perl here documents, i.e., the Perl heredoc syntax.

Perl offers a convenient way of printing multiple lines of output through an interesting feature known as a "Perl here document". A here document, or heredoc, lets you easily store multiple lines of text in a Perl variable.

A multiline Perl here document works like this:

Perl exec - How to execute system commands

Summary: Using the Perl backtick operator to execute system comands

One of the real strengths of the Perl programming language is the ease in which you can access (execute) the commands of the underlying operating system. As other programming languages point out, this can be considered a weakness, because it also makes your programs system-dependent, but in reality I've found this to be a problem only five or 10 percent of the time. 

JBuilder key sequences to remember

Here are some important/useful JBuilder keyboard shortcuts to remember:

JBuilder Open Tools - Some of the best JBuilder "Open Tools"?

JBuilder Open Tools question: Can you tell me some of the best JBuilder Open Tools?

Sure. From the Borland Conference 2001, here is a list of the Top-10 Open Tools for JBuilder:

Thu, Jul 31, 2003

A note for me for the future: Bob Hope passed away a few days ago. I don't think most people younger than me care about this too much, but I liked his "On the Road" movies, tv specials, and what he did for the people in the military.

Mon, Jul 28, 2003

Here are a couple of new tips I've written on using regular expressions in Java 1.4. Both tips include complete, working source code examples.

Syndicate content