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




Can you please open a PMR on this if you have not already?

Thanks,

____________________________________________________________________________
Maha Masri
Rational Developer for i - Rational Developer for AIX and Linux - Rational
Developer for Power




From: Buck Calabro <kc2hiz@xxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx
Date: 01/08/2016 11:59 AM
Subject: Re: [WDSCI-L] Regular Expression Find defaults
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



On 1/8/2016 10:06 AM, Craig Richards wrote:

In the LPEX I like to use findText from the command line.

But in order to use regular expressions, I find I have to pass the
regularExpression flag to the findText command each time.

Looking at the help text it does appear to me as though running the
command
"set findText.regularExpression on" should remove the requirement for me
to
specify regularExpression on every search.

But the findText command seems not to take account of the setting of
findText.regularExpression.

Is this a bug? Or must my misreading of the help text?
I'm running version 9.1.1.1 of Rational Developer for iSeries.

Same thing happens in 9.5.0.2. Looks like a bug to me.
set findText.regularExpression on selects the Regular Expression
checkbox in Ctrl-F. Putting a regular expression in that window works.
Copying the RE onto the command line does not.

RPG code:
DFoundMatch S 3A
DKeyMatch S 3A
DMZIP5 S 5A INZ('00000')
DMAILADR S 300A

Ctrl-F search with Regular Expression unchecked:
inz\('\d*
result: inz\('\d* not found.

Ctrl-F search with Regular Expression checked:
inz\('\d*
result: Wrapped. inz('00000 is highlighted.

Issue editor commands:
query findText.regularExpression
result: findText.regularExpression on
findText inz\('\d*
result: "" not found.
findText regularExpression inz\('\d*
result: inz('00000 is highlighted.

Help text for the findText.regularExpression parameter:
on If you specify the on parameter for the set
findText.regularExpression command, the findText command will use
regular-expression pattern matching while searching within the current
view.

--
--buck

Visit wiki.midrange.com and register for an account. Edit a page that
helps you, and because it's public, you'll help someone else, too!

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


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.