Regex to match a portion of a URL string in ProxySG policy

book

Article ID: 167327

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

How do I use regex to search requests for the following string:

php?label=

For example, www.domain.com/xxxphp?label=xxxxxxxxx

Resolution

Use the following regex:  

^.*php[?]label[=].*$

Refer to the following URL for regex testing: http://www.regexplanet.com/advanced/java/index.html