Trying to place the words after word COMPLETE - google-sheets

I have the data in the attached sheet where i am trying to placer this line after the word COMPLETE but my formula places the line before the complete. You help towards the problem will be appreciated.
https://docs.google.com/spreadsheets/d/1jd7AVAvHwfznW_tpykhJb58cPvE7BLxtnJCq9fZy0WE/edit?usp=sharing
=ARRAYFORMULA(IF(A2:A9=B2:B9, REGEXREPLACE(A2:A9, "(COMPLETE)", "(No Measure Applicable) $1"), B2:B9))

See if this helps ?
=ARRAYFORMULA(IF(A2:A9=B2:B9, REGEXREPLACE(A2:A9, "(COMPLETE)", "$1 (No Measure Applicable)"), B2:B9))

Related

New to Coding, how do I combine several print statements into one nicer looking one?

Hi I am new to coding was wondering a simple question, how do I combine this piece of code:
print("Hi, this program is used for the voting system of the new boat name of Ratentango.")
print()
print("The 4 choices for names are:")
print("Boatie Mac Boatface")
print("Bouyonce")
print("Pride of Ratentango")
print("Black Pearl")
print()
print("Please make sure you enter the correct name, as it is case sensitive and any spelling errors will not be counted.")
print()
If not the whole thing, I was thinking just this bit could be combined somehow.
print("The 4 choices for names are:")
print("Boatie Mac Boatface")
print("Bouyonce")
print("Pride of Ratentango")
print("Black Pearl")
Thanks for the help!
I'm assuming you are writing in python, please specify your language to the next questions.
For the answer, you can concentrate the string / variables with , sign between them in the print function call.
Example:
Print ('Hello', 'World','!')
Output : Hello World !
If you want to break line after every sentence you sould add \n in the end of each sentence.
Good luck!

A function that takes a string and gives you the first word separated by whitespace?

Example:
get_first("wassup! man") = "wassup!"
This must be very simple but can someone point me to a right direction of the solution. Not seen examples online.
1>string:split("wassup! man", " ").
["wassup!","man"]
2> hd(string:split("wassup! man", " ")).
"wassup!"
or you can use http://erlang.org/doc/man/string.html#lexemes-2
I don't even know erlang, but Google is your friend! It would save yourself a lot of time if you try Googling your question before posting it here. Just try "erlang extract first word of string". The very first result will take you to this page: http://erlang.org/doc/man/string.html where you can see the sub_word function. But then it says that this is deprecated and you need to use nth_lexeme:
http://erlang.org/doc/man/string.html#nth_lexeme-3

Neo4j CSV file import Error

I'am trying to import the '|' delimited csv file into neo4j and it returning the below mentioned error. "Tried to read a field larger than buffer size 2097152. A common cause of this is that a field has an unterminated quote and so will try to seek until the next quote, which ever line it may be on. This should not happen if multi-line fields are disabled, given that the fields contains no new-line characters. This field started at C:\Users\10077\Documents\Neo4j\default.graphdb\import\customer.csv:0" Please help me to resove this....
The following is definitely working :
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///orders.csv" AS row FIELDTERMINATOR ','
CREATE (:ORDERS {OORDERKEY : row.O_ORDERKEY , OCUSTKEY: row.O_CUSTKEY, OORDERSTATUS: row.O_ORDERSTATUS,OTOTALPRICE: row.O_TOTALPRICE, OORDERDATE: row.O_ORDERDATE, OORDERPRIORITY: row.O_ORDERPRIORITY,OCLERK: row.O_CLERK, OSHIPPRIORITY: row.O_SHIPPRIORITY,OCOMMENT: row.O_COMMENT});
With this data :
O_ORDERKEY,O_CUSTKEY,O_ORDERSTATUS,O_TOTALPRICE,O_ORDERDATE,‌​O_ORDERPRIORITY,O_CL‌​ERK,O_SHIPPRIORITY,O‌​_COMMENT
1,36901,O,173665.47,02-01-1996,5-LOW,Clerk#000000951,0,nstru‌​ctions sleep furiously among
2,78002,O,46929.18,01-12-1996,1-URGENT,Clerk#000000880,0, foxes. pending accounts at the pending silent asymptot
3,123314,F,193846.25,14-10-1993,5-LOW,Clerk#000000955,0,sly final accounts boost. carefully regular ideas cajole carefully. depos
4,136777,O,32151.78,11-10-1995,5-LOW,Clerk#000000124,0,sits. slyly regular warthogs cajole. regular regular theodolites acro
Can you check your end of line characters ?
Hope this helps,
Regards,
Tom

Corona extract each character from string

I'm beginner in game development using corona, can you please help me guys how to get every character in a word then add background image to it and make it clickable like in 4 Pics and 1 Word Game. Can you please suggest some ideas or tutorial link. Thanks. So far I don't have enough reputation to put image here but here is the Screenshot Link
Here are some pieces that may help you
1. Iterate over each character
local str="Something"
for i = 1, str:len() do
print(str:sub(i,i));
end
load image
local img = display.newImage("images/" . letter . "1.jpg");
if you need anything specific ask here
To iterate over each character, try also this:
local str="Something"
for c in str:gmatch(".") do
print(c)
end
(Actually, this iterates over each byte in the string, which may not be what you want if the string contains Unicode characters.)

Ruby:-Find the occurrences of a character in a file

I am looking for the Ruby method that can help me find the occurrences of a character in a file.I am looking for all occurrences, not just the first one.
I am able to read the file with the help of File.read("filename").
I do know how to find the no of occurrence in a particular string but dont know how to implement it when finding the characters in the file.
Please help.
Using File.read("filename") is not the most efficient way to do it, but it does not matter unless the file is too big, and if you are using it anyway, then File.read("filename") is indeed a string, so do it as you would with other strings.
File.read("filename").count(some_character)
or
File.new("filename").each_char.inject(0){|n, c| n += 1 if c == some_character; n}

Resources