471,354 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Regular Exp

Tunga Torgal Jun 13, 8:55 am show options

Newsgroups: microsoft.public.dotnet.languages.csharp
From: "Tunga Torgal" <tungator...@hotmail.com> - Find messages
by this author
Date: Mon, 13 Jun 2005 10:55:55 +0300
Local: Mon,Jun 13 2005 8:55 am
Subject: Regular exp
Reply | Reply to Author | Forward | Print | Individual Message |
Show original | Report Abuse

Hi all,
I want to parse a string like this :
ali veli "49 50" "naber lan" deneme
It should return this substrings:
1. ali
2. veli
3. 49 50
4. naber lan
5. deneme
Actually, it is a problem of parsing quotation marks...
For this, I use this regex : (?<=").+(?=")|[^\s"]+
But, it returns
1. ali
2. veli
3. 49 50" "naber lan
4. deneme
How can I solve this problem...
thanks in advance...


Jul 21 '05 #1
0 968

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jamie Pittman via AccessMonster.com | last post: by
4 posts views Thread by Buddy | last post: by
4 posts views Thread by Neri | last post: by
2 posts views Thread by Sehboo | last post: by
4 posts views Thread by Együd Csaba | last post: by
7 posts views Thread by Billa | last post: by
9 posts views Thread by Pete Davis | last post: by
25 posts views Thread by Mike | last post: by

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.