Jump to content

_StringBetween


Recommended Posts

The project that I'm working on for stringbetween not working well.....

CODE

#include <IE.au3>

#include <String.au3>

#include <array.au3>

$sURL = "http://www.freewebs.com/lukejrs/test.html"

$oIE = _IECreate($sURL, 1, 1)

$sText = _IEBodyReadText($oIE)

$aArray1 = _StringBetween($sText, "zip.value = "", "";")

If IsArray($aArray1) Then

MsgBox(0, "Body Text", $aArray1[0])

Else

MsgBox(0, 'Empty', 'Nothing found')

EndIf

I'm trying to get this Value 34444-2345. I would like to use _IE like _IENavigate, IECreate, and IEBodyReadHtml etc not INetGetSource because doesn't use cookie which at work doesn't find anything.

CODE
$profile = 'http://www.freewebs.com/lukejrs/test.html'

$values = _StringBetween(_INetGetSource($profile), 'zip.value = "' , '";')

For $i = 0 To UBound($values) - 1 ; maybe $i = 1 if you needn't the count.

MsgBox(0, "Comment count is:", $values[$i])

Next

I would like to extract al this value

CODE
data.address.city.value = "FORT ";

data.address.state.value = "NY";

data.address.zip.value = "34444-2345";

data.address.country.value = "USA";

data.address.home.value = "(999) 999-9999";

data.address.work.value = "(999) 888-8888";

data.address.email.value = "BIGDUH@AOL.COM";

data.address.language.value = "ENGLISH";

data.address.firstName.value = "BETA ";

data.address.lastName.value = "HELP ";

data.address.middleInit.value = "A ";

data.address.title.value = "";

data.address.address1.value = "2456 SEA ISLAND RD ";

data.address.address2.value = " ";

data.address.address3.value = " ";

Such as Fort, Ny, and much more.... More String Between

Any Idea?

Link to comment
Share on other sites

Hi,

how to test it?

before :

...

after :

what do you need?

So long,

Mega

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

Hi,

#include <IE.au3>
#include <String.au3>
#include <array.au3>
$sURL = "http://www.freewebs.com/lukejrs/test.html"
$oIE = _IECreate($sURL, 1, 1)
$sText = _IEDocReadHTML($oIE)
$aArray1 = _StringBetween($sText, 'zip.value = "', '";')
If IsArray($aArray1) Then
    MsgBox(0, "Body Text", $aArray1[0])
Else
    MsgBox(0, 'Empty', 'Nothing found')
EndIf

So long,

Mega

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

Hi,

no problem. I tested on XP SP2.

So long,

Mega

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...