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



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.


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.