This is a statement in my ColdFusion:
Normal temperature values 96.9-98.6°F will not trigger the alert. Celsius values from your hospital’s interface are converted to Fahrenheit for alert triggering.
I don't want the  to come in between 98.6 and °F. And hospital’s should be hospital's. Please tell me if an escape sequence has to be used.
Related
I have a custom slot types called amount in which i added decimals, whole numbers, numbers with dollar sign and numbers with comman, alphanumeric strings with dollar text such as "Two dollar thirty cents", "2 dollar 30 cents".
Now for 1 intent it is working fine. If i type 10000, it will accept it
But for other intent, if I type 10000, it does not accept it.
Also most of the time it is accepting the same value which i feed in expand value option in custom slot type Ex., if I feed 8345 to custom slot type, the slots will accept input for 8345 only, if I enter any other 4 digit number, it gives error.
Can anyone please help me in this?
I have made a temperature type in which a user should be able to enter a temperature in Celsius, Fahrenheit, or Kelvin. I am making a function that given an input such as "100 F" it will split the string, and create a temperature with degrees 100 & scale F. I need to be able to split it by the white space so I can pass them into my constructor to make the type. I am currently doing it by using subs but overlooked that if I pass a larger number it would not split it correctly. Is there a way to split by a space, or white space in user input.
I have to use a picture as I am logging in virtually to a machine and cannot copy paste.
I need them to be able to enter anywhere from absolute zero of the respective temperature to as high as they want it to be, for example 1000 F.
To split a string, you should use clojure.string/split. Great examples here:
https://clojuredocs.org/clojure.string/split
I'm working in a database app that allows text formulas. There is a specific formula that will convert a number to text, but I want that text to match the format written on checks
ONE-HUNDRED-FIFTY-AND-5/100
Below is an example of the formula and the result. For some reason the output on the formula is only
AND-5/100
Any tips on what I need to do to make the rest of my formula work?
"Amount number" is the field in my database that I want to convert to text.
upper(regexReplace(numberToWords(extractRegex({Amount number},^.*(?=(\\.)))),\\s+,-)) AND extractRegex({Amount number},[^.]*$)/100
Output I'm getting is only AND X/100 the first part of the formula is not showing up.
I am trying to search for cells in a column containing a time in the format of 00:00 using the MATCH function. I have tried things similar to MATCH("??:??",A:A) and MATCH("?*:?*",A:A) with no luck. How can I form a regular expression of 2 digits, then a colon, then 2 digits?
Often times what is displayed to us in excel isn't the actual value. Time and Dates are one such time. Generally if you enter a time into excel 3:55 it will convert that automatically to excel's time format, which is a decimal number: 0.163194444444444, but it formats it automatically to "mm:ss" just like you entered it.
So... when you try to =MATCH() using a wildcard, you aren't going to find a hit since the value in the cell is actually that decimal number.
Instead you have to convert the value of the cells you are searching into a text format. You can do that with the =TEXT() formula. Assuming your data starts in A1 you can put in B1:
=Text(A1, "mm:ss")
Now the returned value from that formula still looks like the mm:ss format, but it's now text. The underlying value is actually 3:55. No funny business. You can now base your wild card search of "*:*" off of this column:
=Match("*:*", B1:B10, 0)
If you want to do this all in one formula you can use an Array formula (or CSE):
=Match("*:*", Text(A1:A10,"mm:ss"),0)
Using Ctrl+Shift+Enter (instead of Enter) when you enter the formula.
I am trying to find a piece of regex to match a currency value.
if the price is 1000 in USD then need to validate in the format 1,000.00 or 1,000 But in the case of German it is opposite like 1.000,00 or 1.000 I need to validate the entered amount is in usd format or german format.user can enter with or without decimal.
If you need to process such information, why not parseCurrency() function? Should there be any error it will yield false.
Regular expression, I think in this case at least, should be avoided since there is functionality which is already provided.
That being said, you could use something like so (^\d{1,3}(,\d{3})*(\.\d{2})?)$|(^\d{1,3}(\.\d{3})*(,\d{2})?$).