Jump to content

Help me with StringRegExp


Recommended Posts

Content-Encoding: gzip

Vary: Accept-EncodingTransfer-Encoding: chunked

Date: Mon, 30 Jan 2012 15:02:59 GMTServer: LiteSpeed

Connection: closeX-Powered-By: PHP/5.3.8

Pragma: no-cacheSet-Cookie: PHPSESSID=f3bf4905708dadadc1620d7082ed135c; path=/

Set-Cookie: ABC1=cd0f1a1bda2a8d4c70711fd437d2cbea; expires=Tue, 31-Jan-2012 15:02:59 GMT; path=/

Set-Cookie: ABC2=fe3c9f6f0bccd6034f64f07423b1ee8c; expires=Tue, 31-Jan-2012 15:02:59 GMT; path=/

P3P: policyref="http://abc.com/w3c/p3p.xml", CP="ALL DSP COR CURa ADMa DEVa TAIa IVAi IVDi CONi HISi TELi OUR IND PHY ONL FIN COM NAV INT DEM GOV"Cache-Control: no-cache, must-revalidate

Expires: Sat, 26 Jul 1997 05:00:00 GMTContent-Type: text/html

How can I split the cookie value ?

THANK !!!

Edited by DUNGYEUANH
Link to comment
Share on other sites

  • Moderators

DUNGYEUANH,

Please highlight the part you want extracted. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

This?

#region    ;************ Includes ************
#include <Array.au3>
#endregion    ;************ Includes ************
$str = 'Content-Encoding: gzip' & @CRLF & _
  'Vary: Accept-EncodingTransfer-Encoding: chunked' & @CRLF & _
  'Date: Mon, 30 Jan 2012 15:02:59 GMTServer: LiteSpeed' & @CRLF & _
  'Connection: closeX-Powered-By: PHP/5.3.8' & @CRLF & _
  'Pragma: no-cacheSet-Cookie: PHPSESSID=f3bf4905708dadadc1620d7082ed135c; path=/' & @CRLF & _
  'Set-Cookie: ABC1=cd0f1a1bda2a8d4c70711fd437d2cbea; expires=Tue, 31-Jan-2012 15:02:59 GMT; path=/Set-Cookie: ABC2=fe3c9f6f0bccd6034f64f07423b1ee8c; expires=Tue, 31-Jan-2012 15:02:59 GMT; path=/' & @CRLF & _
  'P3P: policyref="http://abc.com/w3c/p3p.xml", CP="ALL DSP COR CURa ADMa DEVa TAIa IVAi IVDi CONi HISi TELi OUR IND PHY ONL FIN COM NAV INT DEM GOV"Cache-Control: no-cache, must-revalidate' & @CRLF & _
  'Expires: Sat, 26 Jul 1997 05:00:00 GMTContent-Type: text/html'
$re = StringRegExp($str, '=(w+?);', 3)
_ArrayDisplay($re)

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...