Best Place For Easy Eaxamples Of RegEx For Beginners

Dec 8, 2010

I have founfd numerous ones on the net, but they all only do these complicated RegEx for zip codes, html, address, credit card numbers, etc etc,All I want to accomplish is when the user searches for "commend", they get only every occurence of the word "commend". NOT commendeth, or commends, or some other variation.[code]

View 3 Replies


ADVERTISEMENT

Collection To Place These Objects In For Easy Reference?

Nov 11, 2011

I have an error while using a collection that has been stumping me for years.I wrote a class to allow users to write equations in a txt file using RPN (stack based notation).The class runs through a select statement while reading the equation and then ends up with a final number as the answer. I have a collection to place these objects in for easy reference. For whatever reason I get random object reference not set to an instance of an object errors when there is nothing in the program that would remove objects from the collection, kill objects, or change the collection in any way. It is possible for one thread to call the calculate function while another thread calls the CurrentValue property. I'm not sure if this could be causing the error, but once it happens I get an error every time the program enters that code until I run out of memory.

[Code]...

View 4 Replies

VS 2005 Where Is Best Place To Start Learning RegEx

Feb 9, 2010

I am a RegEx virgin and have no idea where to start.

1. Where is the best place to start learning RegEx?

2. If i have an array list full of text, how can i search for a string which is in the list? For example, if i enter the search string "bob test" in this text: it will return a true. However, if there is only one match, it will also return a true.

3. thirdly, how can i search and pick out the link which is surrounded with the following tags?

View 7 Replies

Resource For Beginners In .NET?

Dec 29, 2011

Bob Tabor posted a series called "Visual Basic Fundamentals: Development for Absolute Beginners." In his series, he explains many key foundations of programming to beginner programmers. I happened to find some of his videos helpful which is why I post this.

The series can be found on Channel 9, which is under the operation of Microsoft.[URL]..I haven't watched all of his videos at this point but it is definitely a great reference to brush up on old concepts or to give to newer developers in need of learning material.

View 2 Replies

VS 2010 For The Sub-beginners?

Feb 19, 2012

I have discovered this forum recently as I have found some answers to questions I have had here.I am a military veteran majoring in English at the U of Pitt, and for my math I am taking a computer programming course. Unfortunately, I have been unsuccessful thus far in being able to sit down with my professor when I am stuck simply because my work schedule conflicts with his office hours and I lack the parts of a beautiful young coed, who get most of his attention (He's living the dream,I hope it would be appropriate for me to post my student-level questions here. If not, Mods,

[Code]...

View 4 Replies

What Is Best ADO.NET 4.0 Book For Beginners

Mar 2, 2011

i am searching a good book to learn ADO.NET 4.0,book should be excellent technical overview with practical examples,I want to learn ADO.NET Where should I start?

View 1 Replies

Tutorial For Beginners Especially For Database

Jan 11, 2010

VB.NET tutorial for beginners especially for database,

View 4 Replies

Version Of VB Studio For Beginners?

Aug 2, 2011

I want to learn visual basic 2010 and was told to get visual basic studio to work with. Problem is I don't know which one as there does not seem to be any sort of beginners version but just ones like professional or premium its confusing.For anyone with experience with using visual basic studio please can you tell me what one to download to work with for a beginner like me.

View 3 Replies

Beginners Tutorial For VB 2008 - From The Perspective Of A Former VB6 Programmer?

Jan 12, 2010

I'm thinking of trying to learn VB 2008, and I was wondering if there's an online guide or tutorial to get going from the ground up - from the perspective of a former long-time VB6 user (makes it a bit easier to relate functions in VB 2008 and how they replace older functions in VB6)?

View 1 Replies

BBC Resource: Beginners Guide To Use The Internet (BBC WebWise - BBC Connect)

Mar 2, 2011

The BBC has created this website with a series of courses to enable people who may fear using a computer to get to grips with the basics. Some of the areas are aimed at potential "silver-surfers". Older people who may find using a computer useful for things such as email, shopping, sharing photos and such like.

[Code]....

View 2 Replies

VS 2008 Navigating My Code - Flow Can Jump From Place To Place

Mar 11, 2010

Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.

View 1 Replies

Copy Folder With Its Content From Place To Another Place?

Dec 18, 2011

How copy folder with its content from place to another place. example from C: to D:

View 15 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

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

Cant Move My Form From Place To Place ?

Jun 21, 2011

My form cant move i set none to formborderstyle and made my form transparent using

CODE:

So now i cant move my form from place to place.

View 4 Replies

Place All The Objects In The Same Place On The Screen

Nov 30, 2011

I am learning Visual Basic 2010 and I am working on a space combat program for my own education and amusement (a simulation of the Honorverse space combat system). I have a routine to add ships to the enemy ship roster and then place them randomly on the viewscreen. When I step through the sub with the debugger, it works fine, but when I run it without stopping, it wants to place all the objects in the same place on the screen. It's actually assigning 2 random numbers pertaining to the size of the viewscreen and assigning those numbers to GameObjectScreenLocation through GameObjectWorldLocation.X and GameObjectWorldLocation.Y. The objects are fully initialized to 0 in their constructor, FYI. Code is below:

[Code]....

View 3 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

UI-threading An Easy Way To Fix It?

Jan 23, 2012

I am communicating with a USB-HID device. It will successfully complete hundreds of send-receive requests but occasionally get a Null Exception error.

[Code]...

at the rxData.dataPacket(i) = element I will get a NullReference error every now and then. I could enclose it in a try/catch statement, but I'd like to fix the root problem if possible.This device is communicating to microcontrollers, and it is possible that they won't always give a value... but my feeling is this is some sort of UI threading issue. When debugging, even though there is a null exception, many times there actually does seem to be data in dataReceived.data.ToList(). Is there an easy way to place the whole data processing routine on a thread separate from the UI?Edit: Changed code to match answer and give more info on where it is used. Still get NullReferenceExceptions after about 1,000 completed send/receive requests to the HID device.

View 2 Replies

.net - VB Flamed For Being Easy And Yet Python Is Not?

Sep 19, 2010

I have always wondered about this and seen this among lots of programmers. Why is a VB programmer or VB code easily dismissed as too noobish and easy while the same does not apply to Python or Python code? After all, isn't Python as easy as VB is? And it does provide drag-n-drop GUI application building also. So why is it that VB is flamed and yet Python is not?

View 1 Replies

An 'easy' Way To Capture Video?

Apr 15, 2012

I've been trying to play with DirectShow but it's getting on top of me and my question on here didn't answered so I'm thinking maybe I should go with a different approach. (DirectShow VB.net can't change recording format). <- Where as that 'works' I can't get it in the format I want it, and I don't really understand it so I'd obviousl like to go down the route of something I can get my head around.

I've googled till my fingers are raw trying to come up with an easy way to record video in my vb.net application, it doesn't have to be fancy, just a preview with a start record, stop record button, that's it.

View 2 Replies

Best And Easy Resources Material?

Feb 14, 2010

iam very keen to learn vb.net 2008 so please suggest me how to access world most and best free of cost reading material available on net for reference.and free best book available for vb.net 2008 on the net. there is any complete source code available for consideration.

View 2 Replies

Easy Way To Iterate Through Objects?

Jun 25, 2009

Lets say I have 30 text fields in a Frame on my form, and I want to set them all to disable (so users can't edit them).Is there an easy way to walk through those fields without having to create an array of text fields?

I.E., in ... VB 6, with an array of text fields, I can do something like this:
For i = 0 to 10
txtfield(x).enabled = true.
Next i

Is there something in VB.NET where I won't have to use an array of controls, something like this (assuming all txt fields are in a frame):

[Code]...

View 6 Replies

Easy Way To Run Procedure In Background?

Sep 27, 2011

I'm running stored procedure from asp.net front-end but it's quite long. What is the easy way on running that thing in the background? I mean if I close the browser, I still want my stored procedure to complete not just die. Also, I would like to perform other actions on the front-end while my procedure is running.

View 3 Replies

Finding Way For Easy Encryption?

May 22, 2009

Is there an easy way to encrypt things? Here is some code I got:

[code]...

View 9 Replies

Why Isn't There An Easy Way To Display Date

Nov 17, 2010

I have 2 datetime components in my application. [code] How do I do it? How do I get it so my 2 datetime controls display the current 24 hour time?

View 14 Replies

.net - Rectangle Width(probably Easy To Answer) VB?

May 2, 2012

Dim energybar As New Rectangle(9, 154, energy, 21)That is my new rectangle, now when I draw it e.Graphics.FillRectangle(Brushes.Blue, energybar)It says there is no width but the integer energy is = to 100...now, how do I fix this? It but be somewhat simple.

View 1 Replies

Easy Way Of Reading And Writing To / From Register

Apr 20, 2009

I have been using what I think is a simplistic and easy way of reading and writing to/from the registry but whenever I look at code I keep seeing links to DLL's and constant decorations and lines and lines of code.[code]

View 2 Replies

Easy Way To Detect Internet Connectivity?

Oct 28, 2009

I saw another forum which discussed how to detect whether a LAN was connected, but I need to know whether my Internet connection from my ISP is up or not (I'm writing a program for day trading, so knowing if my internet connection is down is critical). I know I can simply open a browser in VB and browse to a site and see if it doesn't come back "page not found", but that involves a fair amount of overhead, and if the internet is down, it often takes many seconds to a minute to come back with "page not found". Is there some simple command that will quickly tell me that my internet connection is working? I'm using VB in VS 2008, and currently using XP although I plan to convert to Windows 7 in the next couple months.

View 3 Replies

Easy Way To Wait For Keypress From User

Jul 30, 2009

I want to have a one second pause after some code has run. During that pause, if a certain key is pressed, I want to do some action. Otherwise, I want the code to continue as normal. What would I use to replace the comments in the following code?

myTestCode()
' Wait one second and see if a given key was pressed.
' If specific key is pressed, then show messagebox (or whatever) asking user if we should cancel (whatever)
NextMethodToRun()

Yes, I know there are a number of ways, which is why I am looking for something that is fast and simple to use. I do not want a console window, some other form, etc. to appear. Just want to check if a key was pressed. The key (if pressed) should be pulled off the keyboard buffer.

View 1 Replies







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