# Pulling numbers from a string?

**URL:** <https://forum.choiceofgames.com/t/pulling-numbers-from-a-string/141603>\
**Category:** ChoiceScript Help\
**Created:** [August 29, 2023, 5:20am UTC](https://forum.choiceofgames.com/t/pulling-numbers-from-a-string/141603 "2023-08-29T05:20:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [August 29, 2023, 12:11pm UTC](https://forum.choiceofgames.com/t/pulling-numbers-from-a-string/141603/5 "2023-08-29T12:11:05Z")

</div>

Yes it is possible. You’d have to write loops in ChoiceScript, which is not trivial. @HWKEye, I’m not sure I understand your solution and how you could use it to store different attributes individually.

@Phenrex, I suggest you use @Twiger_Fluff’s [solution to polyfill arrays using strings](https://forum.choiceofgames.com/t/working-string-manipulation-no-script-used-substring-substr-indexof-contains-replace/94805).

---

_[View the full topic](https://forum.choiceofgames.com/t/pulling-numbers-from-a-string/141603)._
