>I know this is true of HS+, so I assume it of Dreamweaver:
>
>First, $ represents end of file, not end of line, so use whatever
>literal linebreak your system or setup uses.

That's odd since the Help built in to DW states $ is end of line

>Second, backreferences are done using backslashes instead of dollar
>signs, so use \1 instead of $1.

I was used to using \1 but in the DW help it says...

"Use parentheses to set off groupings within the regular _expression_ to be referred to later. Then use $1, $2, $3, and so on in the Replace With field to refer to the first, second, third, and later parenthetical groupings.

"Note: In the Search For text box, to refer to a parenthetical grouping earlier in the regular _expression_, use \1, \2, \3, and so on instead of $1, $2, $3.

I'm actually stalling on the Find portion even before I actually try to replace anything.

>Finally, the regex you wrote (if it worked) would add the option tags to
>every line in the file.  I'm not sure if that was your intent.

Yes that is what I wanted.  I have a stack of column text I want to wrap in the before and after strings in my example.  DW lets you find and replace line by line so I was going to step forward 20-30 lines then cancel.

>--Ben
>
>CF Coder2 wrote:
>
>>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to