|
-
Sep 5th, 2010, 02:31 AM
#1
[RESOLVED] Small help needed with this regex
Hi...
I want to extract mark1=90 from the string mark1=90 For English3 & English2. And I tried the following code. But it doesn't seems to be working because it is returning blank value 
BTW, I'm not good in RegEX.
vb Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strTemp As String
strTemp = "mark1=90 For English"
Dim aa As New System.Text.RegularExpressions.Regex("^[0-9]+$")
MessageBox.Show(aa.Match(strTemp).Value)
End Sub
Any help would be great... Thanks...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|