473,624 Members | 2,238 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Regular Expressions - text between quotes

I having a hard time with regular expressions, this is my first attempt at
using them.

I need to take a string which will have some text between quotes and return
the text between quotes or any other character for that matter. The text
will not always be the same length or in the same place in the string.

I'm not above looking through some tutorials etc. so if someone knows of a
good and simple (emphasize simple) tutorial or reference on VB.NET regular
expression I'd appreciate it. Kind of a teach the man to fish thing.

TIA
Fred
Nov 21 '05 #1
4 2241
Sorry we're doing this in VB6 not .NET

"Fred" <fb******@centr alstatesmfg.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I having a hard time with regular expressions, this is my first attempt at
using them.

I need to take a string which will have some text between quotes and return the text between quotes or any other character for that matter. The text
will not always be the same length or in the same place in the string.

I'm not above looking through some tutorials etc. so if someone knows of a
good and simple (emphasize simple) tutorial or reference on VB.NET regular
expression I'd appreciate it. Kind of a teach the man to fish thing.

TIA
Fred

Nov 21 '05 #2
Sorry we're doing this in VB6 not .NET

"Fred" <fb******@centr alstatesmfg.com > wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I having a hard time with regular expressions, this is my first attempt at
using them.

I need to take a string which will have some text between quotes and return the text between quotes or any other character for that matter. The text
will not always be the same length or in the same place in the string.

I'm not above looking through some tutorials etc. so if someone knows of a
good and simple (emphasize simple) tutorial or reference on VB.NET regular
expression I'd appreciate it. Kind of a teach the man to fish thing.

TIA
Fred

Nov 21 '05 #3
I think you can do what you want to do.
Programming VB.net by Balena (Microsoft) is a good resource.

"Fred" wrote:
I having a hard time with regular expressions, this is my first attempt at
using them.

I need to take a string which will have some text between quotes and return
the text between quotes or any other character for that matter. The text
will not always be the same length or in the same place in the string.

I'm not above looking through some tutorials etc. so if someone knows of a
good and simple (emphasize simple) tutorial or reference on VB.NET regular
expression I'd appreciate it. Kind of a teach the man to fish thing.

TIA
Fred

Nov 21 '05 #4
I think you can do what you want to do.
Programming VB.net by Balena (Microsoft) is a good resource.

"Fred" wrote:
I having a hard time with regular expressions, this is my first attempt at
using them.

I need to take a string which will have some text between quotes and return
the text between quotes or any other character for that matter. The text
will not always be the same length or in the same place in the string.

I'm not above looking through some tutorials etc. so if someone knows of a
good and simple (emphasize simple) tutorial or reference on VB.NET regular
expression I'd appreciate it. Kind of a teach the man to fish thing.

TIA
Fred

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2013
by: M Wells | last post by:
Hi All, I couldn't find a regular expressions group to ask this in, so I thought I'd ask here as I'm a little familiar with php's regular expressions syntax. I have a comma delimited text file that I need to change to being tab delimited. My problem is that commas appear in the values of one of my columns,
1
4164
by: Kenneth McDonald | last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API and feature sets. rex is a module intended to make regular expressions easier to create and use (and in my experience as a regular expression user, it makes them MUCH easier to create and use.) I'm still working on formal documentation, and in any case, such documentation isn't necessarily the...
3
1623
by: Bryan | last post by:
Hi All: I'm trying to find the right Regexp string to remove empty SPAN tags from an HTML string. Say I have a string like so, and I want to remove the empty span tags: <span>This is my text</span> A simple expression like this /<SPAN>(.*)?<\/SPAN>/gi will give me the
6
255
by: Craig Buchanan | last post by:
I have a string in the format "name" <address> that i would like to split into an array of two values. name should be the first value, address the second value. what does my regex pattern need to be? If the regex doesn't find occurances of two double quotes and an occurance of < and an occurance of >, will i get a null string array? btw, is there a difference between: dim X() as string and
0
479
by: Fred | last post by:
I having a hard time with regular expressions, this is my first attempt at using them. I need to take a string which will have some text between quotes and return the text between quotes or any other character for that matter. The text will not always be the same length or in the same place in the string. I'm not above looking through some tutorials etc. so if someone knows of a good and simple (emphasize simple) tutorial or reference...
1
2272
by: passion_to_be_free | last post by:
I am writing a javascript that will make an http request, sort through the html for any links on the page, and then store them for future processing. To test things, I pasted html source code into my text editor, ran a GREP search using the following regular expression: (<a *href\s*=\s*")(+)("*>) And the appropriate links were highlighted correctly. I then
25
5146
by: Mike | last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in matches. I would like to get what the actual regular expression is. In other words, when I apply ^(.+)(?=\s*).*\1 to " HEART (CONDUCTION DEFECT) 37.33/2 HEART (CONDUCTION DEFECT) WITH CATHETER 37.34/2 " the expression is "HEART (CONDUCTION DEFECT)". How do I gain access to the expression (not the matches) at runtime? Thanks, Mike
12
2460
by: FAQEditor | last post by:
Anybody have any URL's to tutorials and/or references for Regular Expressions? The four I have so far are: http://docs.sun.com/source/816-6408-10/regexp.htm http://en.wikipedia.org/wiki/Regular_expression http://www.regular-expressions.info/javascript.html http://www.webreference.com/js/column5/
10
1668
by: Julien | last post by:
Hi, I'm fairly new in Python and I haven't used the regular expressions enough to be able to achieve what I want. I'd like to select terms in a string, so I can then do a search in my database. query = ' " some words" with and "without quotes " ' p = re.compile(magic_regular_expression) $ <--- the magic happens m = p.match(query)
0
8170
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8619
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.