## legacy_dmclub_3.txt
## -------------------------------------------------------------------------------------------------
## Defines legacy URLS and their new modern equivalents
## using regular expressions
##
## Release    > 1.00
## Project    > dmClubURLTranslation-Sep06:S01_C03
## Changedate > 18-10-06
## Copyright  > (C) Digital Mail Limited (2006)
## Author     > Richard Knight (RAK) for DML
## -------------------------------------------------------------------------------------------------
##
## The format is: URL-TO-MATCH > RESULT
## URL-TO-MATCH is a perl-compatible regular expression
## RESULT can be an absolute or root URL, and may contain back references eg. $1
## The chevron character ( > ) is used as a separator, and whitespace is ignored
##
## Parameters in URL-TO-MATCH always occur in alphabetical order
## If RESULT is 'TERMINATE' then the request is not redirected
## -------------------------------------------------------------------------------------------------

## Regex for matching legacy URLs
## -------------------------------------------------------------------------------------------------
@.*\Qdmclub.net/signup?\E(?=.*frames=n)(.*)@																		> http://cl06.dmclub.net/signup?$1
@.*\Qdmclub.net/um/\E([^/]+)/(\w{4,6})only\.cfm$@ 																	> http://cl06.dmclub.net/um/$1/$2only.cfm
@.*\Qdmclub.net/um/\E([^?#/]+).*@ 																					> http://www.dmclub.net/services/voice.php?dmx_name=$1
@.*\Qdmclub.net/dmcalls/\E([^?#/]+).*@ 																				> http://www.dmclub.net/services/calls.php?dmx_name=$1
@.*\Qdmclub.net/signup?\E.*chooser_range=4470058.*firstpage=chooser.*service=dm([^&]+).*virtopaccref=([^&#]+).*@ 	> http://www.dmclub.net/numbers/07d/choose.php?abs_setint=$1&dmx_did=$2
@.*\Qdmclub.net/signup?\E.*chooser_range=4470058.*service=dm([^&]+).*virtopaccref=([^&#]+).*@ 						> http://www.dmclub.net/numbers/07d.php?abs_setint=$1&dmx_did=$2
@.*\Qdmclub.net/signup?\E.*chooser_range=4470059.*firstpage=chooser.*service=dm([^&]+).*virtopaccref=([^&#]+).*@ 	> http://www.dmclub.net/numbers/07k/choose.php?abs_setint=$1&dmx_did=$2
@.*\Qdmclub.net/signup?\E.*chooser_range=4470059.*service=dm([^&]+).*virtopaccref=([^&#]+).*@ 						> http://www.dmclub.net/numbers/07k.php?abs_setint=$1&dmx_did=$2
@.*\Qdmclub.net/signup?\E.*chooser_range=44([^&]+).*firstpage=chooser.*service=dm([^&]+).*virtopaccref=([^&#]+).*@ 	> http://www.dmclub.net/numbers/0$1/choose.php?abs_setint=$2&dmx_did=$3
@.*\Qdmclub.net/signup?\E.*chooser_range=44([^&]+).*service=dm([^&]+).*virtopaccref=([^&#]+).*@ 					> http://www.dmclub.net/numbers/0$1.php?abs_setint=$2&dmx_did=$3
@.*\Qdmclub.net/signup?\E.*service=dm(?:unified|voice).*virtopaccref=([^&#]+).*@ 									> http://www.dmclub.net/services/voice.php?dmx_did=$1
@.*\Qdmclub.net/signup?\E.*service=dm([^&]+).*virtopaccref=([^&#]+).*@e												> 'http://www.dmclub.net/services/'.strtolower('$1').'.php?dmx_did=$2'
@.*\Qdmclub.net/\E(?:(um/?|index.html?))?$@ 																		> http://www.dmclub.net/index.php

## LINES FOR THE TRANSLATION ENGINE'S BUILT-IN TEST PAGE
## -------------------------------------------------------------------------------------------------
/.*\/numbers\/999\.php/			> http://thirdspace.demotel.org/numero_uno.php
/.*\/mon(.*)/					> http://thirdspace.demotel.org/tues$1
/.*\/wed(.*)(?:\?param=(.*))+/	> http://thirdspace.demotel.org/fri$1?igot=$2
## Test of full URLS
/\w+:\/\/[\w.]+\/pear.html$/	> http://www.apple.com/pro/
