Skip to main content

All Questions

Tagged with
1 vote
1 answer
1k views

Pyspark handling number with comma to decimal

I have the following column that need to be transformerd into a decimal. Currently the column ent_Rentabiliteit_ent_rentabiliteit is a string and I need to transform to a data type which returns the ...
Regazzi's user avatar
  • 115
0 votes
3 answers
1k views

Hive extract numeric value from a string

I have a table as: column1 column2 The first value is 200 gb need to restart (2 times) The 2nd value is 700 gb need (optional) to restart (10 times) I am ...
Tanvir's user avatar
  • 174
0 votes
0 answers
30 views

Extract number from string with C# Regex [duplicate]

I want to extract a number from a string in C#. The input string is a single line, but otherwise can be anything. I want to extract with the following rules: The first character can be a minus sign, ...
Rob Cunningham's user avatar
1 vote
1 answer
656 views

Postgresql - How to get numeric value from the end of string and string without end numeric value

I have the following usernames in Postgresql user table. **username** test 123test 123test456 test123 test45test test55test55 So I am trying to get the string without end numeric value and end ...
stackUser's user avatar
  • 579
0 votes
0 answers
25 views

How to get attribute values that doesn't contain numbers?

I have created automation test code for one website. And I am collecting all the links that are not contains numeric values in it. For an Ex. correct link ex: https://stackoverflow.com/questions/ask ...
SanjX's user avatar
  • 1,127
4 votes
1 answer
816 views

Python regex : compute and replace numeric values

I have a regex issue which do not seems as common as I thought : I would like to extract all numeric values having px units, apply some calculation, and then re-inject the new value within my string. ...
Arkeen's user avatar
  • 614
-1 votes
1 answer
165 views

Regular Expression - Need Help Matching Everything Except For A Certain String [duplicate]

After countless hours of trying to get this regex to work (including looking all over StackOverflow), I thought I'd reach out for help on here as I have not been successful). I have tried creating a ...
Help's user avatar
  • 181
3 votes
3 answers
80 views

Time conversion to number

There is a vector with a time value. How can I remove a colon and convert a text value to a numeric value. i.e. from "10:01:02" - character to 100102 - numeric. All that I could find is presented ...
Dmitry's user avatar
  • 87
0 votes
4 answers
175 views

Get all numeric before first Alpha in PHP String

I'm trying to get all numeric before space/alpha in PHP string. Example: <?php //string $firstStr = '12 Car'; $secondStr = '412 8all'; $thirdStr = '100Pen'; //result I need firstStr = 12 SecondStr ...
Blackjack's user avatar
  • 1,065
-1 votes
3 answers
4k views

Extract numeric elements from a vector

I have a vector 'a' which has numeric and non-numeric elements. I want to extract the numeric elements from the vector and build a new vector. How do I do this? So if a is: a = c(15, 3, 44, "hello", ...
Sinha's user avatar
  • 456
0 votes
2 answers
2k views

Java - How to create a substring until a non-numerical character is reached?

The title speaks for itself. I'm trying to create a calculator that integrates polynomial functions using basic coding, not just whipping out a math operator to do it for me :). I haven't had to go ...
Unknown's user avatar
  • 25
1 vote
1 answer
2k views

Dealing with plus and minus signs in regexpr in R

I would like to include the the minus or plus sign when extracting numeric data from a character string. The number is 8.81e+001. Using the following code I can get the e, but not the + and subsequent ...
squishy's user avatar
  • 489
1 vote
2 answers
2k views

Splitting a string on a numeric value using Regex in VB.NET

I have a string of format: "one two 33 three" I need to split it on the numeric value so that I get an array of length 2: "one two" "33 three" or an array of length 3: "one two" "33" "three" I ...
Coding Duchess's user avatar
33 votes
6 answers
45k views

Keep only numeric value from a string?

I have some strings like this string phoneNumber = "(914) 395-1430"; I would like to strip out the parethenses and the dash, in other word just keep the numeric values. So the output could look like ...
meda's user avatar
  • 45.5k
0 votes
2 answers
960 views

Regular Expression: Match number or words, not both

I need to strip a URL for routing. For that matter the parameters must be checked and redirected accordingly. The is a need of a regular expression that will check if the parameter is a word(s)(white ...
yossi's user avatar
  • 3,174

15 30 50 per page