|
From: Ciszkowski, J. <Jac...@na...> - 2004-12-14 16:48:18
|
What are the strings you are trying to match? I can give you a regex to = use... -----Original Message----- From: jed...@li... [mailto:jed...@li...]On Behalf Of Randall R Schulz Sent: Tuesday, December 14, 2004 11:45 AM To: jed...@li... Subject: Re: [ jEdit-users ] Search and Replace Question Steve, Andrew, On Tuesday 14 December 2004 08:32, Steve Jakob wrote: > On 14-Dec-04, at 11:08 AM, Garst Andrew wrote: > > In the following Search and Replace > > Search: > > ^(\S.*?)\b(AND|WHERE|FROM|OR)\b > > Replace: > > $1\n$2 > > Clicking on "Replace All" only performs the Search and Replace on > > the first match per line and I would like it to perform the replace > > on every > > match in the line. > > The caret symbol (^) ensures that the RE will match only at the start > of the line, which is why it only matches once per line. > > Try removing it. > > I must admit, I'm having trouble figuring out exactly what it is > you're trying to match using this RE, especially with regards to > "(\S.*?)" and the reason for the backspace (\b) escape sequences. That is a puzzle, eh? Technically, I thought two closure operators in a=20 row were an RE syntax error. Perhaps Andrew is unaware that '?' is a regular expression operator=20 (meaning match zero or one of the immediately preceding (sub-)=20 expression). Or perhaps he just meant "(\S.*)?" > Steve Jakob Randall Schulz ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://productguide.itmanagersjournal.com/ --=20 ----------------------------------------------- jEdit Users' List jEd...@li... https://lists.sourceforge.net/lists/listinfo/jedit-users |