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



Yep regular expressions are your friend...

Now if I could just figure out how to use them in RDi...

In particular, ones that span multiple lines. Is that supported yet? I
found a post about them not being support in WDSC 7..

I've been copying my code over to another editor (Ultra-Edit) to do
multi-line reg-ex.

Plus I'm not sure what dialect of reg-ex RDi supports...

Charles


On Wed, Jun 25, 2014 at 4:04 PM, <darren@xxxxxxxxx> wrote:

That replaces the exsr $Main great, thanks. I guess I need to read up on
how regular expression work, since I want to replace all of the exsr, and
not just $Main.




From: Buck Calabro <kc2hiz@xxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx
Date: 06/25/2014 02:25 PM
Subject: Re: [WDSCI-L] Mass replace exsr with callp ()
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



On 6/25/2014 1:48 PM, darren@xxxxxxxxx wrote:

With the new free form declarations, its become fairly easy to convert
exsr
into dcl-proc and endsr into end-proc. Then I do a find/replace to
convert
exsr into CALLP, however, is there a good way to put a open/close paren
();
at the end of the call? For example, I want to convert EXSR $MAIN; into
CALLP $MAIN();

Does this help?
findText regularExpression replaceWith "callp $1()" exsr(.*\$main)

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


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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.