VS 2008 Regexp To Get 2 Values

Jan 1, 2010

Been at this for ages now experimenting different ways to do this, i have fields in my html file that look like:[code]is it possible for me to get both the numeric values 18621335 and the username graham23s in the same regular expression?

View 1 Replies


ADVERTISEMENT

VS 2008 Regexp For 2 Values

Sep 6, 2009

For the past 2 days i have been trying to come up with a simple solution for this problem, but i have turned up nothing so far.[code]What i am thinking now, is if there was a way to get the "name" and "value" field with the 1 regular expression, instead of having to do the 2, would that be possible?

View 4 Replies

Getting Some Values From Regexp?

Apr 10, 2011

"_anim(d+)$"

Ok, with that, I can check for any string that has the _anim suffix alright.
But I need to get the value inside the parenthesis (which I expect to be an integer). And I will also need to get the value before the _anim prefix (which I expect to be a string).

That is what I don't get: how do it "get" values, instead of just "knowing" there was a match?

View 1 Replies

Regexp - Match The Last Number And Replace

Jan 20, 2010

I have 2 strings:

"This is number 123456789"
"This is number 123456"

I want to match the last number "123456" and replace this. Not the first number because the length is > 6 digits. I have this regex "d{6}" but then he will match the first number also.

View 10 Replies

Extract Some Specific String From The Web Script By RegExp?

Jul 27, 2009

My problem is to extract some specific string from the web script by RegExp, e.g:

1. <TD title="ABC - SDC">Home Furniture</TD>

- I want to extract "Home Furniture" from here.

2. <TD><INPUT class=ID="( 8352623 ) Demark" value="( 8352623 ) Demark"></TD></TR><!-- <tr> -->

- I want to extract "8352623" from here, can be any of them.

How can I write a RegExp to match them?

And I am getting one solution but work out in C#, obviously it's not working in VB, so anyone does me a favor to translate them in VB structure...

string pattern1 = @"<([tT][dD])[^>]*>(?<between>.*)(?=</1>)";
string test1 = @"<TD title=""ABC - SDC"">Home Furniture</TD>";
if (Regex.IsMatch(test1, pattern1))

[Code]....

View 1 Replies

"Regular Expressions" Create Object I.e. CreateObject("VBScript.RegExp")?

Apr 14, 2010

The code I am using is below: There is a failure somewhere in this code but I cannot "see" it

[Code]...

View 1 Replies

Inserting New DWord Values And Chnages Values Using 2008?

Apr 13, 2010

Am New To This Fourm So Forgive Me If I Have Put This In The Worng Place I HAve Been Programming For 3 Years And Need A Project I Am Doing.I Am Using Visual Basic 2008 Express EditionOutlineI Want To Be Able To Add A Dword Value To A Exsisting Location and add a value to that Dword Value

Example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList and then Add a new Dword Value that is not there such as Administrator

[code].....

View 1 Replies

VS 2008 How To Get Values From XML

Apr 29, 2012

I need to get each Hour values to own labels of this XML.I got labels for each hour to clicks and conversions where those values should go.[code]

View 10 Replies

Get Values From Listarray 2008?

Aug 28, 2009

I have to make a program that reads a txt file after reading it, show it in a richtext box and in another tab make the average of the grades the input received sort it by the student id and then in the same rtb sort it by the average of their grades, and finally save it on a new text file.The text file input is something like this

12 3 10.0 6.9 7.3
19 2 6.7 9.3
10 3 4.5 9.3 4.5

[code]....

View 1 Replies

VS 2008 - Progressbar Without Specifying Values?

Mar 4, 2010

I'm doing a job in background (another thread) and do not know its progress, so I can't put values in progress bar. I'm looking for a progressbar that is just 'walking' from left to right and vice versa, until the job is finished (Microsoft uses it sometimes). Where can I find that progress bar?

View 2 Replies

VS 2008 Add Up The Values In A Datagridview?

Feb 25, 2011

like to be able to add up (and insert) all the values of a column in the datagridview but can't work out how to do it.I would like to insert a value into the ApplicantID column and read a value entered in the Grade column when a button is clicked

View 5 Replies

VS 2008 Get External Values?

Dec 24, 2009

I want to run a simple app i am making, with an value set to it. I don't know how to call it, but for example in php it would be: text.php?value=string here

View 12 Replies

VS 2008 Getting Values From DataGridView

Sep 19, 2011

I have a DataGridView on a WinForm that has a column with a combo box in it. The combo is populated from a datasource and all works great. My problem is this: How do I get the value selected (or the text) in the combobox for a specific row when a button is pressed?

View 3 Replies

VS 2008 Getting Values From XML Files?

Aug 31, 2009

I'm having a bit of trouble getting values from my .xml file.

vb.net
<Main>
<PrimaryFields>
<City>City Name</City>

[Code].....

View 5 Replies

VS 2008 Passing Values?

May 22, 2009

basically, i get "Object reference not set to an instance of an object" on the line:

example Dim x As Integer = objPlayer.Hand.Count

this line is in the object Dealer, but as far as i can tell i've declared everything correctly ...

i was told that i had to pass the values to the object or something, but not how to do it

View 18 Replies

VS 2008 Rerandomzing Changes Old Values?

Oct 5, 2010

I have a subclass created called symbol with 4 sub values of integer type, left/right/above/below I am storing them all in an array, adding them one by one, each time I re generate the "symbol" and assign its values using randomize + rnd() Yet for some obscure reason everytime I put a new symbol in my array, all the older symbols all change. No where at all in my script do I manipulate their values, they just change on their own.

I'm thinking it might be some kind of benign compiler error where it is actually assigning a pointer to rnd()'s value to a int in a class in an array, as opposed to its actual value at that point in time.It's the only thing I can think of. I'l try storing them in a list instead but I'm also trying to store the array's of symbols I generate in a second array, creating a 2 dimensional array of symbols (of which I then proceed to convert into actual symbols based on the 4 random numbers generated and then combine into a string which I output to text)

Thus I'd need to make a 2 dimensional list, which is not nearly as easy as a 2 dimensional array >.< Everything else in my program works fine except for the fact that because of this error every single symbol is exactly the same.I know this is all happening because I stepped through the process watching it line by line in debug mod and monitoring the values. The values all change the moment I reassign a new Randomize, every one of them changes.

View 6 Replies

VS 2008 Set Excel Values To 0?

Apr 26, 2010

I have a Excel sheet which containes time. 2 cells are being compared in a formula. Sometimes a value is missing in one of the cells, this will cause a negative date. Negative dates in Excel is shown as ####. how i can set this value to zero? Ex: Value A is compared with value B. If value b is missing, theres a negative time.

20:05:20..space..20:31:5300:26:33
20:43:43 ..space..empty cell..####

View 1 Replies

VS 2008 Use Checkboxes To Get The Same Values?

Mar 24, 2010

In my program, I can place an order for glasses.To do this, I have 4 text boxes:

StockNumber: [12345]
GlassOrPlastic: [Glass/Plastic]
ScratchCoating: [Yes/No]
UVFilter: [Yes/No]

Currently, it works fine... BUT I need to type in Glass or Plastic, I need to type Yes/No and same for each thing, wondering would checkboxes be more effecient or how would I do it?How do I even use checkboxes to get the same values...(If I type in Glass it adds �30 to the price, if I type in Plastic only �15 is added...)So if a Yes answer = �20 and a No = �10 How can I do that with checkboxes or whatever...My code for when I click the order button, myAddNew just adds my information in..

Private Sub OrderButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OrderButton.Click
Dim myValue As Integer ' Base value of frames
Dim myValue1 As Integer ' Glass or plastic value

[code]....

View 6 Replies

[2008] Getting Cookie Values?

Mar 15, 2009

have looped through the cookies in the cookiejar and they appear to hold the correect values i need, the thing is i need to be able to use the cookie value outside the for each i did:

Dim cookie1 As String
Dim cookie2 As String
For Each tempCookie As Cookie In GETResponse.Cookies

[code].....

View 4 Replies

VS 2008 'randomise' The Share Values?

Jul 24, 2009

how can I 'randomise' the share values? (I am wanting to have some shares to have a higher risk than others, usually the ones with the higher value.)

View 3 Replies

VS 2008 - Splitting String Into Two Values?

Jan 5, 2010

I want to split my string into two values, I can split it at a point such as , or ? but how can I split it so AAAA will be AA and AA or ABC will be A and BC the only thing normal is the last two will be one and the first one or two will be the other. There will always be a string or 3 or 4 letters.

View 3 Replies

VS 2008 - Values And Reference Types

Oct 29, 2011

Reading a book, the following examples are given regarding value and reference types. This example is noted as a value example. ptY display {x = 10, y = 20}

Dim ptX As New System.Drawing.Point(10, 20)
Dim ptY As New System.Drawing.Point
ptY = ptX
ptX.X = 200
Console.WriteLine(ptY.ToString())

This example is noted as a reference example. objY displays "Hello Test".
Dim objX As New System.Text.StringBuilder("Hello World")
Dim objY As System.Text.StringBuilder
objY = objX
objX.Replace("World", "Test")
Console.WriteLine(objY.ToString())

The idea is simple enough, but I just can not tell the difference between the two. Could someone explain how the heap, the stack and the New keyword play a role in accessing directly and indirectly objects and variables?

View 3 Replies

VS 2008 : Access DB Row Values Into Columns?

Sep 23, 2011

I am Working Windows Appl .Net08.My DB is Access Db.The below image is from Access DB only.In the image the table called Contacts having one of the column called 'ContactMedium'. In this Column having values like 'Mobile' , 'email'.Now i want to saperate these values and create new columns in the same table.How can make these values as a new columns ?If i create Crosstab Query it giving error like Value type is not Aggr.

View 12 Replies

VS 2008 : Add Groupbox`s Textbox Values?

Nov 26, 2009

I have a groupbox with a number of textboxes. I want to loop through all the textboxes, get their value( text) and add them all together and show it in a final totaltextbox outside the groupbox. This is what i have done but it does not work. The totaltextbox values do not change. Here is my code :

Private Sub AGroupBox_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles AGroupBox.VisibleChanged
Dim xxx As Integer
Dim tota, ax As Integer

[code]....

View 3 Replies

VS 2008 : ComboBox From SQL With 2 Values (id And Text)?

Jul 11, 2011

Right now I am trying to make a combobox from a SQL table, it looks something like the following:

id|name|
---------
1|square
2|round
3|triangle

The combobox that I want should display the "name" parts, and I have made the code to display it correctly:

Dim dr As OdbcDataReader
cmd = New OdbcCommand(query, con)
dr = cmd.ExecuteReader

[code]....

View 4 Replies

VS 2008 : Edit Values In Textfile?

Jan 31, 2011

I need to check the size of textboxes in a webpage. I have already written the function which retrieves the maximum size of textbox and which writes the html codes of the webpage in a textfile. suppose i have these lines in my textfile:

<input type=text name=firstname size=30/>
<input type=text name=surname size=50/>
<input type=text name=address size=40/>

How can i change the size of all textboxes to 50 (the maximum size) in the textfile itself?

View 1 Replies

VS 2008 : Get Values From Datagridview But Not Duplicates?

Jul 21, 2010

I need to get all the different values from my dgv, but no duplicates, and add them as rows to my dataset.for example if my dgv col1 have the following values:

a
b
c

[code]....

the procedure must get the values from dgv1 and add it to a dataset if the values isnt already there.My dataset should have this:

a
b
c
d
e

View 9 Replies

VS 2008 : Update Values In A CSV File?

Jan 8, 2010

update values in a CSV file.I would prefer to use ADO and write a query to update the values.

View 2 Replies

VS 2008 Byte Arrays - Getting More Values

Jun 11, 2010

I am having some major problems with byte arrays. First off the bigger array I have the more values go missing, I originally wanted to make a huge array and just dump like a 100mb chunk of memory in it but when I did that every byte in the array returned 0. So I experimented a bit and found 4kb to be the biggest chunk size to reliably not return 0.. ok I figured I'll just loop the 4kb and glue them back together later but no such luck, after being combined into the main array the bigger the number gets the more values that should be there just aren't.

Here's a code sample:
Dim retval(4095) As Byte
Dim combval(RLen) As Byte
For i = 0 To RLen - 4095 Step 4096
ReadProcessMemory(ProcAccess, i, retval, 4096, 0)
retval.CopyTo(combval, i)
Next i
WriteLine(combval(321603964))
WriteLine(ReadMemory(321603964, 1)(0))

So with the last 2 lines if I pull up some smaller number like 8 digits or so it reports back no problem but anything slightly bigger like the number i have written in there right now is just 0. After some additional research I discovered that the reason why 4kb is the max size I can reliably get is coz that's the size memory chunks are made of, "page" as they call it. Why the memory reading drops off at higher addresses alltho I suspect it has something to do with the way memory is structured and I am just not hitting the startpoint of a page anymore due to an offset or something somewhere.

View 3 Replies

VS 2008 Checking For Registry Values?

Jan 14, 2010

I have tried to solve this myself and I know I am probably doing something really silly here what I have is two different registry values that control what is displayed in the combobox on my form RegistryKey1 has the following values:0,1 or it does not existRegistryKey2 has the following values2,3, or 4 the combobox has the following values 0,1,2,3 However here is the problem if the RegistryKey2 is 2 then it further has to be checked if RegistryKey1 is either 0,1 or does not exist

if it is 1 then the selectedindex = 0
if it is 0 or does not exist then the selectedindex = 1
if RegistryKey2 is 3 then the selectedindex = 2

[code].....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved