# Can I find how many times a substring appears in a string?

**URL:** <https://forums.unrealengine.com/t/can-i-find-how-many-times-a-substring-appears-in-a-string/417176>\
**Category:** Blueprint\
**Tags:** string, csv, unreal-engine, question, Blueprint\
**Created:** [February 13, 2018, 10:21am UTC](https://forums.unrealengine.com/t/can-i-find-how-many-times-a-substring-appears-in-a-string/417176 "2018-02-13T10:21:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Levelhead](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Levelhead](https://forums.unrealengine.com/u/Levelhead)\
**Post date:** [February 13, 2018, 10:21am UTC](https://forums.unrealengine.com/t/can-i-find-how-many-times-a-substring-appears-in-a-string/417176/1 "2018-02-13T10:21:40Z")

</div>

I’m reading from a CSV file and want to know how many times for example “Female” appears. Right now I can do this by using “contains”, then “split”, and continue looking. However it’s very slow.

---

<div class="post-metadata">

**Author:** ![Levelhead](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Levelhead](https://forums.unrealengine.com/u/Levelhead)\
**Post date:** [February 13, 2018, 1:33pm UTC](https://forums.unrealengine.com/t/can-i-find-how-many-times-a-substring-appears-in-a-string/417176/2 "2018-02-13T13:33:11Z")

</div>

Hmm, found it “Count Occurrances Of Sub String”, sneaky 🙂

---

<div class="post-metadata">

**Author:** ![Estape](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/estape/32/1007455_2.png) [@Estape](https://forums.unrealengine.com/u/Estape)\
**Post date:** [August 9, 2019, 7:16pm UTC](https://forums.unrealengine.com/t/can-i-find-how-many-times-a-substring-appears-in-a-string/417176/3 "2019-08-09T19:16:49Z")

</div>

Victory Plugin
