Hi,You've used a character class (between [ and ]. Don't use character classes, because it will match everything that contains a character from that class.
Octavian----- Original Message ----- From: <james.homme@xxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Thursday, November 01, 2007 3:15 PM Subject: Regular Expression Thickness Again
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 functionor 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
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind