Regular Expression Thickness Again

  • From: james.homme@xxxxxxxxxxxx
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Thu, 1 Nov 2007 09:15:56 -0400

Hi,
I put builtin.jsd into EdSharp. I want to swap the first word on every line
with the rest of the line if that line begins with either the word function
or the word script.

My search expression is this.
(^[function|script])(.*$)

My replacement expression is this.
\2\1

When I execute the replacement operation, the whole line disappears. What
did I do wrong?

Thanks.

Jim

James D Homme, , Usability Engineering, Highmark Inc.,
james.homme@xxxxxxxxxxxx, 412-544-1810

"Never doubt that a thoughtful group of committed citizens can change the
world.  Indeed, it is the only thing that ever has." -- Margaret Mead

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: