× 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.



I just tried and no, since LPEX will not search over the prefix area.
It just modified the source line like below

// MOD# PCR# PGMR DATE DESCRIPTIONR// MOD# PCR# PGMR
DATE DESCRIPTIONR


The help is the java.util.regex Class Pattern help. Seems that there
is not enough standardization in REGEX.


Thanks, Matt
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On Behalf Of Vern Hamberg
Sent: Wednesday, March 14, 2012 2:25 PM
To: Rational Developer for IBM i / Websphere Development Studio Client
forSystem i & iSeries
Subject: Re: [WDSCI-L] Compare showing sequence number differences -
offtopic

This is nice - however, I don't use iProjects - does this also work in
the LPEX editor? When I do a search/replace and specify to use regular
expressions? I'm asking cuz I can't take the time just now to try it.

Thanks
Vern

On 3/14/2012 3:05 PM, Tyler, Matt wrote:
Open a member from the iProjects using the "Text Editor", in find
capture whatever you want and replace with whatever you want BUT put
\R
for each new line replaced / added.

Example:
Before:
001000000000 // MOD# PCR# PGMR DATE DESCRIPTION

Find / Replace:
(00100)(0)(000000 // MOD# PCR# PGMR DATE DESCRIPTION)
$1$2$3\R$19$3\R

After:
001000000000 // MOD# PCR# PGMR DATE DESCRIPTION
001009000000 // MOD# PCR# PGMR DATE DESCRIPTION


Thanks, Matt

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

Nice, Paul - I'm glad to be corrected - maybe it's always been there,
but the help was not helpful, as I recall.

I realized I should've explained the backslash quoting the TextPad
uses
- next time, eh?

I'll definitely take a look again - and I hope there's a special code
for newline and all that.

Thanks
Vern

On 3/14/2012 8:47 AM, Paul Bailey wrote:
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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.