Is there a reason I’m unaware of that TC can split on spaces (" ") but can’t count them? The image below illustrates the different behaviors:
Hi there,
I tried it myself and yes tc cannot control the space character, it’s a bit strange. Perhaps @frank could help us in this?
I have an alternate solution to your need:
$tc(count, tc(reg, "To be or not to be", " ", "|"), "|")$
NOTE
We can replace the | with any other symbol as long as it doesn’t exist in the text.
I hope this would help.
![]()
![]()
Thanks Baju, yes that should work, I’ll try it out.
1 Like
We can replace the | with any other symbol as long as it doesn’t exist in the text.
![]()
![]()
Yes, I got it, I understand that much regex at least
I just hadn’t thought of it with the TC count function.
Thanks again
1 Like
