Mike Robbins
03/16/2022, 12:51 PMLRG
03/16/2022, 12:54 PMLRG
03/16/2022, 12:56 PMMike Robbins
03/16/2022, 2:03 PMNElliott
03/16/2022, 2:09 PMMike Robbins
03/16/2022, 3:09 PMNElliott
03/16/2022, 3:49 PMjen
03/17/2022, 9:47 PM<br/>
in a column.jen
03/17/2022, 9:47 PMSELECT LENGTH(REGEXP_REPLACE(REPLACE('here is my <br/> string with lots of <br/> breaks in<br/>it','<br/>','|'), '[^|]', '')) AS numlinebreaks
George McMullen
03/22/2022, 10:50 PMREGEXP_COUNT/*comment*/({fieldname}, ',')
Also look at: https://stackoverflow.com/questions/8169471/how-to-count-the-number-of-occurrences-of-a-character-in-an-oracle-varchar-value
it was the first result searching for: oracle sql number of occurrences in a string
Mike Robbins
03/23/2022, 2:44 PMREGEXP_COUNT
was under Numeric/Math functions so I missed it. I was looking under the String function. This is the right answer. Thank-you!!LRG
03/23/2022, 2:45 PMjen
03/23/2022, 3:13 PMLRG
03/23/2022, 3:15 PMMike Robbins
03/23/2022, 3:34 PMregexp_count
. Ultimately, I used the option to compare the length of the original string with the length of the string without the character in question.George McMullen
03/23/2022, 10:13 PM/**comment**/
to the statement and that made it show up. I guess NetSuite detects it as an aggregate function, when it really isn’t.Mike Robbins
03/24/2022, 1:07 PMLRG
03/24/2022, 1:51 PMGeorge McMullen
03/24/2022, 4:21 PMCOUNT()
is an aggregate function, Netsuite might be thinking REGEXP_COUNT()
is also an aggregate function. Or maybe it can be used as one, I haven’t checked.