Quantcast
Channel: BlogoSfera » comma
Browsing all 12 articles
Browse latest View live

Get "id" values from first three tags only and separate them with "," in output

I have a situation, hope experts here will help me to sort it out. I need to get “id” values for first three tags and than on console.log print the values with comma separated. I have managed to get...

View Article


comma separated string to a table

I have a table with values as follows StudentID | Name | Subscribed Subject | 101 |John | Maths, Bio, Zoo | 102 |Mary | Bio, Zoo | I want to retrieve the information as follows StudentID | Name |...

View Article


unexpected output with comma operator

I wrote a program #include<stdio.h> int main() { int x=3; if((x)==1,2,4,5,6) printf("number found in the list\n"); else printf("Number not found \n"); return 0; } I was expecting the output to be...

View Article

how to do this in sql

I have a comma saprated string ‘rocky,joni,david’ in need to convert it into ‘rocky’,’joni’,’david’. Actually my scenario is that I want to apply sql in in my query for the name column. I know there is...

View Article

Why is "tuple([0])" printed as "(0, )"?

While converting lists to tuples in python 2, I noticed that converting any list with a single item to a tuple produces a comma after the item. >>> tuple([0]) (0,) >>> tuple(['i'])...

View Article


Dealing with multiple JSON objects (Android Java)

I am currently dealing with some JSON and apparently running into a bit of trouble. I have a PHP page that fetches two unrelated MySQL requests at the same time and displays both of them, one after the...

View Article

Possible to regex zero, one or two quoted comma delimited data

Have logs that I wanted to try and parse out values using a regex. The regex is going to be used with scala or java software. Please treat all my letters and numbers as examples of any letter or...

View Article

How to turn a comma separated string into individual rows

I have a SQL Table like this | CustomerID | OrderID +-------------------+----------------- | 123 | wc11,121wdw,ty65 | 456 | 874gh,896hh I want to show them as this | CustomerID | OrderID...

View Article


Split String Using comma but ignore comma if it is brackets or quotes

Seen very examples but i am not getting correct result as expected -> String i am getting "manikanta, Santhosh, ramakrishna(mani, santhosh), tester" Now i want to get the String array as below...

View Article


Regular expression removing 000 and retaining numbers, minus and comma

I have a string like follows in javascript- var input="-213,23.3 '000 Millions"; I want the output to be “-213,23.3” I am using following regex to achieve this- input.replace(/[^0-9.,'-]/g, "") But I...

View Article

Java netbeans adding comma to the table

Hi i am new to this and i am locked in this problem, i am trying to figure out whether you can add a set of values (1,000 ….)to another value. Though i successfully linked an input that automatically...

View Article

Mapping RDD with several comma separated fields in Spark

I am new to Spark and I am going over a tutorial where a line with several fields is parsed with Scala, the code with scala is like this: val pass = lines.map(_.split(","))....

View Article
Browsing all 12 articles
Browse latest View live