Sun Java System Web Proxy Server 4.0.11 Administration Guide

shExpMatch()(str, shexp)

The shExpMatch()() function matches either URL host names or URLs themselves. The main use of this function is for load balancing and intelligent routing of URLs to different proxy servers.


str is any string to compare (for example, the URL or the host name).

shexp is a shell expression against which to compare.

This expression is true if the string matches the specified shell expression. See Example 6: Balance Proxy Load With shExpMatch()().

Returns Values

true or false


The first example returns true. The second example returns false.