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()().
true or false
The first example returns true. The second example returns false.
shExpMatch("http://home.example.com/people/index.html", ".*/people/.*") shExpMatch("http://home.example.com/people/yourpage/index.html", ".*/mypage/.*")