All Questions
81 questions
0
votes
1
answer
108
views
Allow more digit after the first 0 with live input validation regex
I have a regex for some verification on my end. It is
^(?![.,])-?[1-9]*?0?[,.]?([,.]\d+)?$
This regex basically validates a number
if it starts with 0, a comma or dot must follow
Valid => 0.12 ...
0
votes
0
answers
45
views
Numeric field validation not working in Mac safari
I have created input field and for validation I have put regex as "^[0-9]+$". It is validating for every device but when it comes it mac safari it is accepting every character number and ...
-1
votes
1
answer
364
views
How can I find a character of a numeric value in a column of character values that are constructed of numbers and letters?
Let's say I have a dataframe as follows (but much bigger)
df = data.frame(x = c('1E','2E',3,4,5) )
I wish to be able to find the rows numbers that have the characters 3,4 and 5 that do not have ...
1
vote
1
answer
987
views
Error while using str.contains for checking numeric values in a column using regex
I have a dataframe. I want to check if a particular column has numeric values or not using regex matching. When I use str.contains it shows an error like below. What is the correct way to check if all ...
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 ...
-1
votes
3
answers
1k
views
Regex for numeric value that could contain comma & dots
I have been trying but without success
I need a regular expression for validating numbers that could contain dots and commas,
the number should be positive and there should be max of two numbers after ...
1
vote
3
answers
1k
views
Detecting alphanumeric/numeric values in python string
I'm trying to extract tokens/part of tokens that have numeric/alphanumeric characters that have a length greater than 8 from the text.
Example:
text = 'https://stackoverflow.com/questions/59800512/ ...
2
votes
2
answers
654
views
Extract number between two characters in Hive SQL
The query below outputs 1642575.0. But I only want 1642575 (just the number without the decimal and the zero following it). The number of delimited values in the field varies. The only constant is ...
-1
votes
1
answer
182
views
Regex expression help to allow complete digits or with 3 special characters followed by 4 digits in comma separated without spaces
Looking for some help on regex expression for below use case.
My input field should allow only comma separated values of either just digits, or a sequence of special characters (*) followed by digits. ...
-1
votes
3
answers
996
views
Regex - Match Numeric values but not Date
I want to match numeric values, integer, float but not date values.
123 - match
1.23 - match
12345678.99 - match
2020-07-30 10:09:25.786 - no ...
2
votes
1
answer
208
views
Regex to replace up to 4 digits before a word
I am using this extension for chrome (It's called Word Replacer II) and I'm trying to create a Regex find and replace.
Quick backstory, my partner is recovering from an eating disorder and I want to ...
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 ...
1
vote
1
answer
526
views
Grep-function: How to combine characters and a range of numbers
I want to use the grep function in order to get specific items out of the data frame. All items of interest start with "ffcb2", but then I only want to select those ending with the numbers 07 to 16. ...
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, ...
1
vote
2
answers
100
views
regex alphanumeric, but when it gets a numeric, then only numeric
I need to validate an input that must start with an alpha, and then it can be alphanumeric, but once numeric; it must be numeric to the end of the string.
[a-z][a-z,0-9]{1,5}
This does only part of ...