======================================================================
exorbyte GmbH
Sebastian Nagel
Softwareentwickler

Line-Eid-Str. 1 | D-78467 Konstanz
Telefon: 0049 7531 363 39 15 | Telefax: 0049 7531 363 39 01
Email: [email protected] | Internet: www.exorbyte.de

______________________________________________________________________

Exorbyte ausgezeichnet: Landespreis 2010 und Rising Star 2010 –
Die neuen Awards...
http://www.exorbyte.de/auszeichnungen

Exorbyte Commerce Search überzeugt: Die fehlertolerante Produktsuche
für Online-Shops mit neuen Features – Als Webservice schnell in Ihren
Shop einbauen und sofort nutzen...
http://www.exorbyte.de/commerce-search/neue-commerce-search-features

Praktischer Ratgeber: Wie Sie mehr Umsatz aus Ihrer Shop-Suche holen –
Kostenlos downloaden...
http://www.exorbyte.de/ratgeber

______________________________________________________________________

Registergericht: AG Freiburg, HRB 381802
Umsatzsteuer-ID: DE213331910
Geschäftsführer: Gero Lüben, Benno Nieswand
$4 is the 4th captured group

1 ([;_]?
2   ((?i)l|j|bv_)?
3      ((?i)sid|phpsessid|sessionid|cHash)=.*?)
4        (\?|&|#|$)

so a session ID must be followed by ? & # or end-of-string
but ? & # are inserted again.

Beside: (?i)  means case-insensitive matching until the end of the group

On 06/03/2011 04:23 PM, Marek Bachmann wrote:
Hello all,

can someone explain to me, what the $x in the substitution tags in the 
regex-normalize.xml are good for?

e.g.

<regex>
<pattern>([;_]?((?i)l|j|bv_)?((?i)sid|phpsessid|sessionid|cHash)=.*?)(\?|&amp;|#|$)</pattern>
<substitution>$4</substitution>
</regex>

I guess it is some kind of variable but I can't figure out which value it could 
hold.

Thank you very much.

Reply via email to