# regExp to find spaces?

**URL:** <https://forum.kirupa.com/t/regexp-to-find-spaces/329621>\
**Category:** flash\
**Created:** [September 23, 2012, 8:30pm UTC](https://forum.kirupa.com/t/regexp-to-find-spaces/329621 "2012-09-23T20:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeekTweak\_0](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Post date:** [September 23, 2012, 8:30pm UTC](https://forum.kirupa.com/t/regexp-to-find-spaces/329621/1 "2012-09-23T20:30:52Z")

</div>

I just learned about regExp, and am having trouble understanding the concept. any links to good tutorials would be awesome.

but primarily i want to know how to do it to replace a " " (space) with something, but everywhere i look online, its always something different. one that i looked up and KINDOF worked was /\W/. but for some reason it always skips the first space of the sentence unless i double space it, which i dont want to do. A greater understanding would be awesome. thanks.
