× 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 like RegEx Coach it helped me learn the language of reg expr but for
those that cannot download and install additional tools (or don't want
to) you could just use RDi/RDP.

To get help writing a reg expr

1. Open an edit window (I typically use LPEX)
2. Ctrl-H (You have to have the file search tab activated. See button in
lower left "Customize").
3. In the "Containing text:" field press CTRL-SPACE and you will get
brief help with writing a reg expr statement.
4. Specify a file pattern to search text in, if you want to see it in
action. I just use my workspace temp folders. I create a "Working Set:"
to search in.

I use CTRL-H to do mass search and replaces. Here is a search pattern I
have used (action=")(\/%PGMNAM%\/") and I used this $1/CGIBIN/$2
for the replacement. I can search across multiple source members that
have been opened, since the last cache clearing, in the LPEX editor and
replace most any string. The replace feature has a preview window that
you can look through to ensure you are only changing the source you want
and you can review each pattern match replacement.


You can also use rex expr to search and replace in one LPEX session
using CTRL-F now with capturing groups.


Thanks, Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of TAllen@xxxxxxxxxxxx
Sent: Wednesday, March 02, 2011 11:15 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Apache AliasMatch

FYI - There is a great tool called Regex Coach for regular expressions.
Do
a search on 'Regex Coach' and you'll find it. It's a free download.

Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx





Jon Paris

<jon.paris@partne

r400.com>
To
Sent by: "Web400@Midrange. Com"

web400-bounces@mi <web400@xxxxxxxxxxxx>

drange.com
cc



Subject
2011-03-02 11:01 [WEB400] Apache AliasMatch





Please respond to

Web Enabling the

AS400 / iSeries

<web400@midrange.

com>









I cannot find an example of how to AliiasMatch an exact name pattern.

For example - I want to match myserver/jonspgm to
qsys.lib/jons.lib/jonspgm.pgm

But it should not match myserver/jonspgm1.php or myserver/jonspgm.php

I thought:

ScriptAliasMatch ^/jonspgm /QSYS.LIB/JONS.LIB/JONSPGM.PGM

would do it as I understood the Apache docs but obviously not as
anything
that starts with the jonspgm string is being matched.

I guess this reflects my ongoing failure ti understand regex!


Jon Paris




This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please
contact the sender. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.


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.