First, $ represents end of file, not end of line, so use whatever
literal linebreak your system or setup uses.
Second, backreferences are done using backslashes instead of dollar
signs, so use \1 instead of $1.
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.
--Ben
CF Coder2 wrote:
> I'm trying to use the Find and Replace feature of Dreamweaver using
> Regular Expressions. Either I'm doing something wrong or DW is
> totally brain dead when it comes to trying to use RE for this
> purpose. If this is the wrong forum, politely tell me where to go.
>
> I'm trying to find take a list of words (1-3) and place a repeated
> string before it and one after it and one in between a second
> instance...
>
> So I Find: (^.*$)
>
> and try to Replace with: <option value="$1">$1</option>
>
> I can't get past the Find not working. I can't get DW to find ^.* or
> .*$, or any string with $ in it. Yet RE $ is end of line symbol.
>
> What am I doing wrong? (And yes I have the Use Regular Expressions
> checkbox checked in the Find/Replace dialog box. I'm using DW MX 2004
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

