473,396 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help with Capture

Jay
Hi,

I am looking to to break a string into an indetifier along with its
value. The identifiers always start with an asterisk, but can be any
length (the real list of identifiers numbers 50+ in length). Asterisks
are allowed in the value, as long as the are not part of a known
identifier. Here is what I have so far I've come up with:

pattern: (?<Identifier>(\*CZ|\*FUUU|\*GH))(?<Value>[^\*]+)
Input: *CZ1 2.3 4*56 *FUUS24364 08 23 7A

Output:
Identifier:*CZ
Value:1 2.3 4 <-Missing the *56

Identifier: *FUU
Value:S24364 08 23 7A

However, the pattern is dropping the *56 from identifier *CZ's value.
How can I not have it do this?

The desired ouput is:
Identifier:*CZ
Value:1 2.3 4*56

Identifier: *FUU
Value:S24364 08 23 7A

The each identifier's value may contain any number of characters up to
the next identifier or the end of the string.

Thanks,
Jay

Jan 30 '07 #1
0 814

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

Similar topics

7
by: Ray | last post by:
I'm using VB6, I am a little more then a novice but not much.. and my question is - Is there a way to detect and possibly notify (me/mycomputer) if someone is using a Web Cam mainly MSN on my LAN...
1
by: Mark Hargreaves | last post by:
Hopefully someone can help me here. I have a personnel database with numerous tables, although only a few are required for this particular query. I will name them as follows: master - holds...
5
by: Ciar?n | last post by:
I have about 7 tables I need to join, but am having a lot of difficulty with the joins, that I need some help on. I'll provide the details of four tables to illustrate the scenario. I have one...
5
by: Bill Cohagan | last post by:
I'm looking for help with a regular expression question, so my first question is which newsgroup is the best one to post to? Just in case *this* is the best choice, here's the problem: I'm...
4
by: Neri | last post by:
Some document processing program I write has to deal with documents that have headers and footers that are unnecessary for the main processing part. Therefore, I'm using a regular expression to go...
3
by: Hayato Iriumi | last post by:
Hi, I didn't know which newsgroup to post, so I'm posting here hoping to get a help on Regular Expression. Here is what I want to do. I want to find Matches using Regex for the following cases....
7
by: Vinay | last post by:
Hi, I am using Excel in my VB.Net project. While deploying my application on a separate machine, I am getting the following error: File or Assembly name Interop.Excel or one of its...
8
by: jer | last post by:
I've noticed you've helped a lot of people that were trying to do sound recording through VB.net. I'm searched all over the internet, and I'm still having problems write sound to a wav file. My...
0
by: j101 | last post by:
I am attempting to set up Q Capture on RH Linux (x86_64) using DB2 9 fp2, but there seems to be a general problem loading a specify MQ shared library "/opt/mqm/lib/libmqm_r.so". I have MQ v6...
2
by: pampululu | last post by:
hello, I try to use directx.capture in my web application, I use visual studio web developper 2005 express with c# for code behind. I can list the webcam available on computer, no probem, my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.