# Search String, can't find full stops (periods)

**URL:** <https://forum.kirupa.com/t/search-string-cant-find-full-stops-periods/245308>\
**Category:** flash\
**Created:** [November 28, 2007, 12:58pm UTC](https://forum.kirupa.com/t/search-string-cant-find-full-stops-periods/245308 "2007-11-28T12:58:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![perfecthill](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@perfecthill](https://forum.kirupa.com/u/perfecthill)\
**Post date:** [November 28, 2007, 12:58pm UTC](https://forum.kirupa.com/t/search-string-cant-find-full-stops-periods/245308/1 "2007-11-28T12:58:11Z")

</div>

Hi,

I’m trying to search a string for a full stop (period in American), but I can’t seem to get it to work properly:

This is a sample of my code:

```auto
var str:String = calc_content.text; //textbox content
trace(str.search(".")); //returns 0 whether it exists or not
trace(str.search("2")); //returns -1 if doesn't exist or the position (ie 2) if it does

```

Any help would be great!
