in reply to appending to end of string
Since you have "copyright*" as the match string, you are matching copyright or copyrightttt or copyrightttttt, but not "copyright 2003-2004" so the operator you are doing just leaves the rest of the string alone and only works with the part that matches. That is why you get the doubling up of 2003-2004.
If you want to match "copyright 2003-2004" or basically copyright-to-the-end-of-the-line, then use "copyright.*$" to get it all. If not, then build a match that includes the numbers too. The dot-star bit is bad and should be eliminated. You should look at your data and build a better match. See Death to Dot Star! for more.
Some of my details on the exact matching might be a little off, I'm still just a learner on regex's too.
-Kurt
Update: ++demerphq for an even better explanation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: appending to end of string
by demerphq (Chancellor) on Jun 25, 2003 at 22:16 UTC |