473,583 Members | 3,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Parse a string with Embedded Double Quotes

I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination, and I
want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello world"
have been reduced to a single space, and Split does not respect the double
quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the string
character by character, but I am hoping that there is a straight-forward
technique for doing it, without looping, and using some of the techniques I
already have.

TIA

Charles
Nov 21 '05 #1
16 5856
Charles,

I was looking at the problem, I was thinking will I give my answer because
it is so difficult to describe. Than I saw that it was you. Therefore it
should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

....
I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination, and
I want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello world"
have been reduced to a single space, and Split does not respect the double
quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the string
character by character, but I am hoping that there is a straight-forward
technique for doing it, without looping, and using some of the techniques
I already have.

TIA

Charles

Nov 21 '05 #2
Charles,

I was looking at the problem, I was thinking will I give my answer because
it is so difficult to describe. Than I saw that it was you. Therefore it
should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

....
I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination, and
I want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello world"
have been reduced to a single space, and Split does not respect the double
quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the string
character by character, but I am hoping that there is a straight-forward
technique for doing it, without looping, and using some of the techniques
I already have.

TIA

Charles

Nov 21 '05 #3
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am back to
processing each part of the string character by character so that I match
double quotes correctly, and this is what I was trying to avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do not
know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer because
it is so difficult to describe. Than I saw that it was you. Therefore it
should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination, and
I want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello
world" have been reduced to a single space, and Split does not respect
the double quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the string
character by character, but I am hoping that there is a straight-forward
technique for doing it, without looping, and using some of the techniques
I already have.

TIA

Charles


Nov 21 '05 #4
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am back to
processing each part of the string character by character so that I match
double quotes correctly, and this is what I was trying to avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do not
know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer because
it is so difficult to describe. Than I saw that it was you. Therefore it
should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination, and
I want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello
world" have been reduced to a single space, and Split does not respect
the double quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the string
character by character, but I am hoping that there is a straight-forward
technique for doing it, without looping, and using some of the techniques
I already have.

TIA

Charles


Nov 21 '05 #5

Try

(\s*"([\s\w]*)")|(\s*(\w+ ))

Then do a Replace on each Match object with

$2$4

This will return either your double qouted string with out the qoutes or the
word token without the whitespace characters depending on which match the
Match object holds.

You just have to love Regular Expressions.

--Robby


"Charles Law" <bl***@nowhere. com> wrote in message
news:OP******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am back
to processing each part of the string character by character so that I
match double quotes correctly, and this is what I was trying to avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do not
know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer
because it is so difficult to describe. Than I saw that it was you.
Therefore it should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination,
and I want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello world"
have been reduced to a single space, and Split does not respect the
double quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the string
character by character, but I am hoping that there is a straight-forward
technique for doing it, without looping, and using some of the
techniques I already have.

TIA

Charles



Nov 21 '05 #6
Hi Robby

Thanks for the reply. I am not sure that I understand the regular expression
(\s*"([\s\w]*)")|(\s*(\w+ ))
I tried the following, but of course it gives a syntax error because of the
embedded double quotes:

Dim reg As Regex = New Regex("(\s*"([\s\w]*)")|(\s*(\w+)) ")

So I tried escaping the double quotes, like this

Dim reg As Regex = New Regex("(\s*""([\s\w]*)"")|(\s*(\w+) )")

but this cleared my string out to a couple of spaces when I did a replace.

Any chance of a small snippet to get me on the right track, using the Match
object?

Thanks very much.

Charles
"Robby" <ed****@not.my. email.com> wrote in message
news:eC******** ******@TK2MSFTN GP10.phx.gbl...
Try

(\s*"([\s\w]*)")|(\s*(\w+ ))

Then do a Replace on each Match object with

$2$4

This will return either your double qouted string with out the qoutes or
the word token without the whitespace characters depending on which match
the Match object holds.

You just have to love Regular Expressions.

--Robby


"Charles Law" <bl***@nowhere. com> wrote in message
news:OP******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am back
to processing each part of the string character by character so that I
match double quotes correctly, and this is what I was trying to avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do not
know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer
because it is so difficult to describe. Than I saw that it was you.
Therefore it should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
I have a string similar to the following:

" MyString 40 "Hello world" all "

It contains white space that may be spaces or tabs, or a combination,
and I want to produce an array with the following elements

arr(0) = "MyString"
arr(1) = 40
arr(2) = "Hello world"
arr(3) = "all"

Using trim and a regular expression ("\s+"), I can reduce my string to

"MyString 40 "Hello world" all"

and with Split I can get

arr(0) = "MyString"
arr(1) = 40
arr(2) = ""Hello"
arr(3) = "world""
arr(4) = "all"

As you can see, it is not quite what I need. The spaces in "Hello
world" have been reduced to a single space, and Split does not respect
the double quotes, and splits "Hello world" over two elements.

Does anyone have an idea how I could do this? I could process the
string character by character, but I am hoping that there is a
straight-forward technique for doing it, without looping, and using
some of the techniques I already have.

TIA

Charles



Nov 21 '05 #7

Create a console application

############### ##########

Imports System.Text.Reg ularExpressions

Module MainModule

Sub Main()

Dim rePost As New Regex("(\s*""([\s\w]*)"")|(\s*(\w+) )")
Dim testString As String = "MyString 40 ""Hello world""
all "
Dim allMatches As MatchCollection = rePost.Matches( testString)

Dim matchPiece As Match
Dim I As Integer

For I = 0 To allMatches.Coun t - 1
matchPiece = allMatches(I)
Console.WriteLi ne("Piece {0} -> '{1}'", I,
matchPiece.Resu lt("$2$4"))
Next I

End Sub

End Module

############### #####

--Robby

"Charles Law" <bl***@nowhere. com> wrote in message
news:eI******** ******@TK2MSFTN GP11.phx.gbl...
Hi Robby

Thanks for the reply. I am not sure that I understand the regular
expression
(\s*"([\s\w]*)")|(\s*(\w+ ))


I tried the following, but of course it gives a syntax error because of
the embedded double quotes:

Dim reg As Regex = New Regex("(\s*"([\s\w]*)")|(\s*(\w+)) ")

So I tried escaping the double quotes, like this

Dim reg As Regex = New Regex("(\s*""([\s\w]*)"")|(\s*(\w+) )")

but this cleared my string out to a couple of spaces when I did a replace.

Any chance of a small snippet to get me on the right track, using the
Match object?

Thanks very much.

Charles
"Robby" <ed****@not.my. email.com> wrote in message
news:eC******** ******@TK2MSFTN GP10.phx.gbl...

Try

(\s*"([\s\w]*)")|(\s*(\w+ ))

Then do a Replace on each Match object with

$2$4

This will return either your double qouted string with out the qoutes or
the word token without the whitespace characters depending on which match
the Match object holds.

You just have to love Regular Expressions.

--Robby


"Charles Law" <bl***@nowhere. com> wrote in message
news:OP******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am
back to processing each part of the string character by character so
that I match double quotes correctly, and this is what I was trying to
avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do
not know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer
because it is so difficult to describe. Than I saw that it was you.
Therefore it should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
>I have a string similar to the following:
>
> " MyString 40 "Hello world" all "
>
> It contains white space that may be spaces or tabs, or a combination,
> and I want to produce an array with the following elements
>
> arr(0) = "MyString"
> arr(1) = 40
> arr(2) = "Hello world"
> arr(3) = "all"
>
> Using trim and a regular expression ("\s+"), I can reduce my string to
>
> "MyString 40 "Hello world" all"
>
> and with Split I can get
>
> arr(0) = "MyString"
> arr(1) = 40
> arr(2) = ""Hello"
> arr(3) = "world""
> arr(4) = "all"
>
> As you can see, it is not quite what I need. The spaces in "Hello
> world" have been reduced to a single space, and Split does not respect
> the double quotes, and splits "Hello world" over two elements.
>
> Does anyone have an idea how I could do this? I could process the
> string character by character, but I am hoping that there is a
> straight-forward technique for doing it, without looping, and using
> some of the techniques I already have.
>
> TIA
>
> Charles
>
>



Nov 21 '05 #8
Hi Robby - me again

I have it now; I just needed to apply a few of those grey cells I have
knocking about.

Cheers.

Charles
"Charles Law" <bl***@nowhere. com> wrote in message
news:eI******** ******@TK2MSFTN GP11.phx.gbl...
Hi Robby

Thanks for the reply. I am not sure that I understand the regular
expression
(\s*"([\s\w]*)")|(\s*(\w+ ))


I tried the following, but of course it gives a syntax error because of
the embedded double quotes:

Dim reg As Regex = New Regex("(\s*"([\s\w]*)")|(\s*(\w+)) ")

So I tried escaping the double quotes, like this

Dim reg As Regex = New Regex("(\s*""([\s\w]*)"")|(\s*(\w+) )")

but this cleared my string out to a couple of spaces when I did a replace.

Any chance of a small snippet to get me on the right track, using the
Match object?

Thanks very much.

Charles
"Robby" <ed****@not.my. email.com> wrote in message
news:eC******** ******@TK2MSFTN GP10.phx.gbl...

Try

(\s*"([\s\w]*)")|(\s*(\w+ ))

Then do a Replace on each Match object with

$2$4

This will return either your double qouted string with out the qoutes or
the word token without the whitespace characters depending on which match
the Match object holds.

You just have to love Regular Expressions.

--Robby


"Charles Law" <bl***@nowhere. com> wrote in message
news:OP******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am
back to processing each part of the string character by character so
that I match double quotes correctly, and this is what I was trying to
avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do
not know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer
because it is so difficult to describe. Than I saw that it was you.
Therefore it should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
>I have a string similar to the following:
>
> " MyString 40 "Hello world" all "
>
> It contains white space that may be spaces or tabs, or a combination,
> and I want to produce an array with the following elements
>
> arr(0) = "MyString"
> arr(1) = 40
> arr(2) = "Hello world"
> arr(3) = "all"
>
> Using trim and a regular expression ("\s+"), I can reduce my string to
>
> "MyString 40 "Hello world" all"
>
> and with Split I can get
>
> arr(0) = "MyString"
> arr(1) = 40
> arr(2) = ""Hello"
> arr(3) = "world""
> arr(4) = "all"
>
> As you can see, it is not quite what I need. The spaces in "Hello
> world" have been reduced to a single space, and Split does not respect
> the double quotes, and splits "Hello world" over two elements.
>
> Does anyone have an idea how I could do this? I could process the
> string character by character, but I am hoping that there is a
> straight-forward technique for doing it, without looping, and using
> some of the techniques I already have.
>
> TIA
>
> Charles
>
>



Nov 21 '05 #9
Charles,

Can you give us an idea at the end how much time it took to find the regex
and how much time the straight forward technique and than as well a test
what will be the less time consuming method.

To get a good idea about the discussions using Regex or Straight forward, I
looked at it, and I think Straight forward should take me probably less than
30 minutes, so for you probably less than 15.

:-)

Cor

"Charles Law" <bl***@nowhere. com>
Hi Robby

Thanks for the reply. I am not sure that I understand the regular
expression
(\s*"([\s\w]*)")|(\s*(\w+ ))


I tried the following, but of course it gives a syntax error because of
the embedded double quotes:

Dim reg As Regex = New Regex("(\s*"([\s\w]*)")|(\s*(\w+)) ")

So I tried escaping the double quotes, like this

Dim reg As Regex = New Regex("(\s*""([\s\w]*)"")|(\s*(\w+) )")

but this cleared my string out to a couple of spaces when I did a replace.

Any chance of a small snippet to get me on the right track, using the
Match object?

Thanks very much.

Charles
"Robby" <ed****@not.my. email.com> wrote in message
news:eC******** ******@TK2MSFTN GP10.phx.gbl...

Try

(\s*"([\s\w]*)")|(\s*(\w+ ))

Then do a Replace on each Match object with

$2$4

This will return either your double qouted string with out the qoutes or
the word token without the whitespace characters depending on which match
the Match object holds.

You just have to love Regular Expressions.

--Robby


"Charles Law" <bl***@nowhere. com> wrote in message
news:OP******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Cor

You read my mind ;-)

I had thought of using something like #, as it will never occur in my
string. But then I started to look at how I would know which spaces to
replace with #, and which to leave. Of course, to the human eye it is
obvious that I only replace the spaces between " and ", but now I am
back to processing each part of the string character by character so
that I match double quotes correctly, and this is what I was trying to
avoid.

Perhaps there is a regex expression that will match double quotes, or a
method that parses a string taking these into account, but sadly I do
not know it yet.

But please, keep the suggestions flowing.

Charles
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:OX******** ******@TK2MSFTN GP09.phx.gbl...
Charles,

I was looking at the problem, I was thinking will I give my answer
because it is so difficult to describe. Than I saw that it was you.
Therefore it should not be a problem.

In this kind of situations I replace the spaces I will not use for an
absolute unused character.

Do the split

And replace the unused character again back for a space

I assume that this is for you more than enough explanation.

And now you read this you say, I knew that as well.

:-)))

Cor

"Charles Law" <bl***@nowhere. com>

...
>I have a string similar to the following:
>
> " MyString 40 "Hello world" all "
>
> It contains white space that may be spaces or tabs, or a combination,
> and I want to produce an array with the following elements
>
> arr(0) = "MyString"
> arr(1) = 40
> arr(2) = "Hello world"
> arr(3) = "all"
>
> Using trim and a regular expression ("\s+"), I can reduce my string to
>
> "MyString 40 "Hello world" all"
>
> and with Split I can get
>
> arr(0) = "MyString"
> arr(1) = 40
> arr(2) = ""Hello"
> arr(3) = "world""
> arr(4) = "all"
>
> As you can see, it is not quite what I need. The spaces in "Hello
> world" have been reduced to a single space, and Split does not respect
> the double quotes, and splits "Hello world" over two elements.
>
> Does anyone have an idea how I could do this? I could process the
> string character by character, but I am hoping that there is a
> straight-forward technique for doing it, without looping, and using
> some of the techniques I already have.
>
> TIA
>
> Charles
>
>



Nov 21 '05 #10

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

Similar topics

2
416
by: new kid | last post by:
hi, i am new to php programming.i am getting a parse error in configuratuion file of the web site which i am designing ,i.e(th file in which u specify the paths to various folders like folder where uploaded files r stored etc).This is occuring when i click login button after typing the username and password in the login page. the line of...
5
2014
by: Les Juby | last post by:
A client needs a routine to alert him as to which memo records in an Access-2000 database have had double apostrophes inserted in the text. These are stopping a Java mouseover from executing. Normally, while cycling through the recordset, I would use the InStr function to test for a positive result indicating and embedded text. ie. If...
1
1747
by: Thomas Matthews | last post by:
Hi, My goal is to extract a text field into a string type. The text field is from a buffer (array) of characters and delimited by white space or double quotes. *** I'm looking to perform this operation in one pass. I have searched the FAQ and the newsgroup, but have not found anything related to this.
2
2512
by: Trint Smith | last post by:
Ok, My program has been formating .txt files for input into sql server and ran into a problem...the .txt is an export from an accounting package and is only supposed to contain comas (,) between fields in a table...well, someone has been entering description fields with comas (,) in the description and now it is splitting between one...
0
380
by: Charles Law | last post by:
I have a string similar to the following: " MyString 40 "Hello world" all " It contains white space that may be spaces or tabs, or a combination, and I want to produce an array with the following elements arr(0) = "MyString" arr(1) = 40 arr(2) = "Hello world"
6
1768
by: Cerebral Believer | last post by:
Hi folks, I am having trouble identifying the error here can anyone help? Parse error: syntax error on line 318 $e-mail_1 = $_POST; Also will my use of " " (double quotes) instead of ' ' (single quotes) make much difference to the way this code works? It is from a section of code
5
2430
by: meendar | last post by:
Hi, I just want to parse a character string as below Char * c=abcsyd"loddggg"kjskjdfsdf; I need to stripe out loddgg from c (inside ""). How can i do this in c?
2
3211
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString", $formName); // 06-22-07 - the next commands try to import all the functions that the
12
2169
by: Mark | last post by:
Is "{$_SERVER}/inc/mysql-connect.php" more efficient than $_SERVER."/inc/mysql-connect.php" ? Or does it still do a concatenation behind the scenes? I hear concatenation is expensive... (even if its negligible in this scenario)
0
7826
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...
1
7935
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8193
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6579
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...
1
5701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5374
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...
0
3818
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...
0
3843
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2333
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

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.