× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The \1 capturing group replacement stumped me at first, until I realised it was $1 not \1 for the first replacement, $2 for the second, etc. I'm not sure when this appeared, I can't see it documented anywhere, and I can't remember where I saw it first, but it works. Google says it has been mentioned before on WDSCI-L back in 2006: http://archive.midrange.com/wdsci-l/200605/msg00295.html

Some flavours of regular expression differ in minor ways, I guess. The RDP help pages take you to the java.util.regex.Pattern javadoc for regular expression help, but the capturing group replacement values aren't right, so maybe there are other minor differences. (Such as the inability to use \n as a replacement value.) I wonder if these are bugs or misleading/erroneous documentation.


-Paul.



-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: 14 March 2012 12:43
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Compare showing sequence number differences

Hi Paul

I've found that things like \1 for preserving found text are not available in replacement strings - that's the main thing - searching is pretty good, replacing is lacking.

Now maybe there's more in 8.03 - I've not explored that - have they improved the support?

I'm in the LPEX editor - it seems that maybe the Eclipse editor is better, but I've never used that for RPG or CL source.

I'll reply privately on the RTC stuff, at least for now. No biggie.

Vern

On 3/14/2012 7:20 AM, Paul Bailey wrote:
The regex features in RDP are reasonably good. What kind of regex statement requires you to move source outside of RDP? I can't work out inserting newlines, but everything else seems to work as you'd expect.

Incidentally, you mentioned moving to Rational Team Concert in one of your recent posts. I'd be very interested to hear about your experiences with installing and using RTC with RDP (and iProjects) as we are also considering it but the move to iProjects is putting me off researching too much further. Do you have a blog or something to write that kind of report up on?


-Paul


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx
[mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: 14 March 2012 11:42
To: Rational Developer for IBM i / Websphere Development Studio Client
for System i& iSeries
Subject: Re: [WDSCI-L] Compare showing sequence number differences

:-) I hear you - the eclipse compare is very nice for regular text
files, although I still use TextPad for that - I have not seen a side-by-side compare in Textpad, but it does show diffs. I'm sure things like Notepad II or whatever the name are similar.

Trouble with comparing source -without SourceLanding's tool - is just what was described here - source dates are involved. This uses the Eclipse compare, I believe.

Now there is another compare tool - it is under the Edit menu - I just went looking, because I thought it was there. I think it's like the old CODE compare tool - it might be the LPEX editor tool - the one that the setting to ignore sequence numbers might relate to.

The latter tool is not accessible from a right-click on the member name, so far as I can see - I had to go to the Edit menu - there may be a shortcut, I don't know after a quick look-see.

But take a look at this one - it shows the changes intermingled in pink (red)and yellow highlighting.

BTW, I use Textpad for Search/Replace - I copy a block of source there, then use the really powerful regex functionality there, then copy the block back in to the LPEX editor.

HTH
Vern

On 3/13/2012 2:02 PM, Justin Taylor wrote:
Copy them to your PC? That sounds strange to me because I frequently copy PC files to a NetServer share so I can easily compare them using WDSc7.



------------------------------

message: 3
date: Tue, 13 Mar 2012 08:07:53 -0500
from: Vern Hamberg<vhamberg@xxxxxxxxxxx>
subject: Re: [WDSCI-L] Compare showing sequence number differences

You might be better of copying the source to text files on your PC,
then compare in something like TextPad or one of the other ASCII editors.

HTH
Vern

On 3/13/2012 7:52 AM, darren@xxxxxxxxx wrote:
I'm running RDP 8. I'm trying to compare a source member with
greater than 32K records, so the SEU options don't work. I setup
two filters, so that I can easily click on both members, and then
right-click and say compare with each other. Every line in the
source is registered as a change, and I suspect its because of the
sequence/dates. I've checked preferences under Lpex/Compare and
Ignore Sequence #'s is checked. I tried restricting the columns to 13 through 80, and the results are the same.

Does anyone have any luck using the RDP compare function? While I'm
at it, I wouldn't mind a merge function similar to the PDM merge,
that would work
with>32K record source members.

------------------------------
--
This is the Rational Developer for IBM i / Websphere Development
Studio Client for System i& iSeries (WDSCI-L) mailing list To post a
message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.

Scanned by MailDefender - managed email security from intY -
www.maildefender.net Important

This email transmission and any files with it are strictly
confidential to the intended recipient and may be legally privileged.
Any views or opinions presented are solely those of the author and do
not necessarily represent those of BHSF. If you are not the intended
recipient, you must not copy, disclose or distribute its contents in
any way.
If you have received this e-mail in error, please notify the sender
and delete the e-mail from your system.

We have taken steps to ensure this e-mail and attachments are free
from any virus but do not accept any responsibility once this e-mail
has been transmitted. You should scan any attachments for viruses.

No contract may be concluded on behalf of BHSF Limited by e-mail.

Registered Office:
BHSF Limited
Gamgee House, 2 Darnley Road, Birmingham B16 8TE.

www.bhsf.co.uk

Registered in England number 35500.

BHSF is authorised and regulated by the Financial Services Authority.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.