VS 2010 - Regex - Collect Websites In Server Using Sitedossier

Dec 4, 2011

I just started learning .NET and im creating my first little program. the program its to collect all websites in server and for that im using sitedossier to collect, but i have problem with regex. When its my mistake here i still beginner in that language. [Code]

View 3 Replies


ADVERTISEMENT

ListView And RegEx Control - Getting Keywords Of Websites?

Sep 2, 2011

After press the button I want to get the the keywords of all these websites. So I use regex control here is my code :
For Each lvItem As ListViewItem In ListView1.SelectedItems
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(lvItem.Text)
Dim fire As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(fire.GetResponseStream())
Dim sourcecode As String = sr.ReadToEnd()
[Code] .....

View 3 Replies

VS 2008 Unblocking Websites On A Bloxx Server?

Mar 1, 2010

I have the following code which sets internet explorers proxy settings to what ever i want and if i set it to use a proxy ip and port i get a 'Page can not be displayed' error. If i reset it back to the bloxx server again which is: http://gc-bloxx:8080 Then it works fine. What i am asking is, can i get the app to connect through 'http://gc-bloxx:8080' and then set the proxy ip and port so the app can connect to the internet and then unblock the websites?

[Code]...

View 1 Replies

Can't View Visual Web Developer Websites When Copy To Web Server

Jun 30, 2010

As far as I can work out I should be able to copy a web project/application to my IIS Web server and be able to see it as I do when designing it on my development computer.

The problem is once I copy the folder over to my web server and then try to view it the browser it says Error 404 not found. There must be a real simple fix for this. I would like to be able to develop ASP.NET sites using the Visual Web Developer instead of Dreamweaver but this little issue is stopping me.

View 1 Replies

VS 2010 Free Publish To Websites?

Jul 3, 2010

Does anyone know any free websites that i can use the clickonce publish feature on, it said something about frontpage extension

View 5 Replies

VS 2010 How To Match Regex

Mar 15, 2012

i have to match a regex HTML

inputtext:-<div class="header_item_wrapper">
<img src="http://do.a.bpcdn.net/do_img/global/header/buttons/icon_stats_lvl.png?__cv=b84d7d86e451fdfbaa2115080867b100" width="16" height="13" alt="">
<span>4</span>
</div>

[Code]...

View 2 Replies

VS 2010 Regex - Extract ?

Sep 15, 2011

how would i extract something like this....

CODE:

could possibly something like this work...

CODE:

View 1 Replies

VS 2010 RegEx Replace?

Sep 26, 2010

Dim ab As String = "aaaextBox1.Text = Regex.Replace(TextBox1.Text, "Dim " + ab + " As String", "aab")That is the code I am using now. Problem is that it's output is only "aab".Is there any way to keep the structure, so it would be "Dim aab As String" instead of only "aab"?

View 2 Replies

VS 2010 Regex To Get String?

Jan 29, 2011

i am having a file like below.

.....
.....
#pStyle03X0 {XXX: 0px;YYYY: 144px;xxxxx:XXXXX: 1000;xxxxx: 498.00; xxxxx:714.00; }

[code]....

View 5 Replies

Concatenating A Variable With A Regex Group Match In Regex.replace?

Apr 5, 2012

I am having an issue where I am using regex.Replace to replace part of a string. The basic idea is that I want to capture the beginning of the string then replace the end of the string with a value from code. For an example pretend I have a string that says "Test Number " followed by number and I want to increment that number. I capture the "Test Number " but when I try to concatenate that capture with the new number it treats the capture ($1) as a literal and replaces the entire string with $1[new number].

[code]...

This will output "We are on Test Number 2", as expected. how I can use a variable in the replacement string portion of the Regex.Replace when including a captured group?

View 1 Replies

VS 2010 - How To Use RegEx Inside String

Feb 3, 2011

I have this
Dim regex As Regex = New Regex("[0-9]")
If myString = "Hello[" + regex + "]" Then
How do I use a regex inside this string?

View 5 Replies

VS 2010 : Regex Group Value Loop?

Oct 8, 2011

(<td [^>]+>
ss|[^, ]<a href=""http://www.test.com/member.php?action=profile[^>]+>(<span [^>]+><strong>|<span [^>]+>|))[^<]+(<span [^>]+>|</strong></span></a>|</a>|</span></a>)

How do i turn that into a capture group so it only gets the text that is bold and removes the rest?Also how do i loop through all the result from that captured group text?

View 1 Replies

VS 2010 : Regex Results As Array?

Jun 30, 2010

which is the way to create all "matches" to array without this style:

ListBox1.Items.Add(Regex.Match(GetWebData).Value)
ListBox1.Items.Add(Regex.Match(GetWebData).NextMatch)
ListBox1.Items.Add(Regex.Match(GetWebData).NextMatch.NextMatch)

View 2 Replies

VS 2010 ContextMenuStrip & Web Browser & Regex?

Mar 22, 2011

1. Regex:this

Try
Dim mCollect As MatchCollection = Regex.Matches(Textbox1.text.ToString , "(?<=1).*?(?=3)", RegexOptions.IgnoreCase)
For Each m As Match In mCollect
TextBox2.Text = m.Value

[Code]...

View 6 Replies

VS 2010 Facebook Friend Add Using Regex

Aug 27, 2011

facebook friend add using regex,how? [code]

View 1 Replies

VS 2010 Regex Get String Between 2 Strings?

May 27, 2010

I want to get a string between 2 strings using Regex.The the string I have is "<b>hello</b>", now I want to get the string between <b> and </b>. I guess its something like Regex(String, "<b>(.+)</b>" but I'm not sure how to do it. I know there is this function called GetBetween but I guess this is a better way.

View 9 Replies

VS 2010 Regex Of Formatted Text?

Aug 19, 2010

The text I am trying to put my pattern into is:

<li class="hp">
<span>HP</span>
<strong>1850 (+300)</strong>
</li>

The (+300) can go away...i'd really only like to return just the 1850.

View 1 Replies

VS 2010 Using Regex To Identify This String?

Apr 10, 2012

I'm trying to figure out how to use regex to grab the information between the double quotation marks, it will always be in this format:

Client: ("COMMAND", "DATA(if it exists)", "ARG1(if it exists)", "ARG2(if it exists)", "ARG3(if it exists)")
It will ALWAYS have the "COMMAND" string there no matter what, and when the "DATA" string

[code].....

View 2 Replies

When And Why Need To Use GC.Collect()

Jan 24, 2012

My application waits for the user to click twice to draw a rectangle on an image, and use the rectangle to create a clone and save it. Then it restarts with the next rectangle. When I work on a large image (10800x7236) after a few cycles I get an out of memory error. but I still don't understand what's going on, and I would appreciate if some expert out there clarified why it didn't work before and it works now. This is the snippet executed after the user clicks twice, and fails after 5-6 cycles:

[Code]....

View 1 Replies

Regex: Take Text & Some Special Characters Between The Xml Tags Using Regex On C#.net?

Feb 23, 2012

I want to take the text and some special characters between the xml tags.. My input file contains:

[Code]...

now i want the Regex to take text and the special characters between the tags <line>,<inline>..

View 2 Replies

VS 2010 - RegEx Webpage For Date Formatted

Apr 21, 2011

How would I regex a webpage for a date formatted as:
April 21, 2011

View 4 Replies

VS 2010 Put More Lines For Specific Information Of Regex?

Nov 6, 2009

How do i can put more lines for specific information of regex?

...Regex("(?<=SOMETHING).+?(?=SOMETHING)")

Once again selected from RuneScape, because here is best code for it.

<tr class="row rowp4">
<td align="center">
<img class="miniimg" src="http://www.runescape.com/img/hiscores/skill_icon_strength1.gif">
</td>

[code]....

View 3 Replies

VS 2010 Regex Causing Memory Leak?

Dec 5, 2011

I managed to get a program I made up and running fine, but i noticed it has a small memory leak somewhere. I looked through the code and I think its coming from somewhere in this

vb
Private Sub Button4_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

[code].....

View 2 Replies

VS 2010 Regex To Find A Pattern In File?

Jan 21, 2012

have a 1mb file, should get the pattern from it

pattern should be like this
6numbers + 10&FF + 6numbers
in the hex binary editor it looks like this

[code].....

View 4 Replies

VS 2010 Simple Regex Pattern Matching?

Jul 1, 2011

I need an extremely simple regex pattern that matches anything within square brackets [].

Example:

This is a [test] text with [some] [examples].Required results: [test], [some], [examples].I don't want to get rid of the brackets, they should be included in the result (that should make it easier, right?)

If possible I'd like to exlude results that have whitespace in them, so things like [this string] should not be matched. If that gets too hard (probably not, but hey I can't even manage this :S) then I don't really mind, I can always check if the result contains whitespace myself.

I tried a lot of examples I could find online and ones that I could think of myself but none work. Note: I've been testing with the Visual Studio Find dialog (checking to use regular expressions obviously), maybe that's where the problem lies, because I don't really understand why some of these don't work...

Anyway, first thing I tried was simple: match the two brackets and one or more characters in between (that should be a +, right?)

View 4 Replies

Collect A Random First And Last Name?

Mar 11, 2012

I currently have code that creates and inserts ~175,000 names into a table.

What is the quickest way to collect a random first and last name? So far I have tried, Reading from two text files where every name is one line it takes ~2:30 minutes Reading from a table with [first][last] columns takes ~4 minutes

View 4 Replies

VS 2010 Proper Regular Expression (Regex) Pattern?

Apr 24, 2012

It seems up until now I've never used Regex, nor even heard of it. But once I did I realized how extremely useful this is. Having said, it's been 2 days since I've began looking into constructing my own patterns. My most recent being for decimals. Is the pattern I provided below "proper"? and are there also any improvements I could be making for a more efficient patter, which would minimize any possibility of a loophole? [code] So for my use, this is doing what it's supposed to being doing under every test I can through at it. But do mind the 0. and .0, I have a function to normalize these as they are proper, I just pad the left and right accordingly. I found most regex questions asked here..and yes I am doing this in vb.net so it fits. If not, then feel free to move this post somewhere else better suited for the topic of discussion.

View 12 Replies

Increment Regex Match Using Regex.Replace

Jun 21, 2012

I'm creating a program in VB.NET to output multiple images. Some images will have the same file name. If there is multiple files with the same name I want to add "_1_" to the end of the file name. If the "_1_" file already exists I want to increment the 1 to be "_2_". If this file already exists I want to continue incrementing the number ultil it doesn't exist. So for example "filename", filename_1_", "filename_2_", etc. Here is the code that I have tried

[Code]...

View 1 Replies

Regex Builder That Actually BUILDS RegEx From A Highlight

Nov 17, 2011

I've been working straight since yesterday trying to get this to work. I'm a noob to RegEx and I've tested out about 5 different RegEx "builders" but each of them require you to navigate through the options to build the Regex...each of them has failed when I try to use them.Is there an application out there free/paid where you select the line you want to grab and the RegEx is auto generated from that highlight rather than having to try to build the line of code? [code]

View 1 Replies

Collect Before And After Values From A Dataset?

Sep 12, 2011

I have a multi-user app which consists of a Windows form (VS2008), and a SQL Express 2008 database. I'm already detecting if the dataset has changed before the user closes the form so I can prompt them to save their changes. What I'd like to do is to capture the changes they've made, and write them to a database table so that users can track all changes made to each record on the DB.What is the best way to grab hold of the data changes before they're written back to the DB and also grab the original records?

View 1 Replies







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