# Need to remove "\\n" from string

**URL:** <https://forum.kirupa.com/t/need-to-remove-n-from-string/257702>\
**Category:** Uncategorized\
**Created:** [April 16, 2008, 1:44pm UTC](https://forum.kirupa.com/t/need-to-remove-n-from-string/257702 "2008-04-16T13:44:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petay\_pan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/petay_pan/32/2987_2.png) [@petay\_pan](https://forum.kirupa.com/u/petay_pan)\
**Post date:** [April 16, 2008, 1:44pm UTC](https://forum.kirupa.com/t/need-to-remove-n-from-string/257702/1 "2008-04-16T13:44:37Z")

</div>

I’m bringing in data from .csv file as a string and then slicing it up into and array so I can apply the values to some text fields.

For whatever reason it is starting and ending the string with  
which as we know is the new line character in as3, I would like to remove these from the string but I’m not really sure what the code is to target them.

So far I have figured out the code to remove the instances I was getting of double double quotes by doing this: (this is written in Flex btw)

```auto

var strResult:String = e.result as String;
strResult = strResult.replace(/\u0022+/g, "");

var trimmedStr:Array = strResult.split(",");

```

Now I’m not all that sure what all the regular expression stuff stands for but I know the u0022 means a doubel quote because I had to look it up in a unicode table.

Can any one help me out here in removing  
from my strings please. I’m finding regular expressions pretty tricky to figure out!

Thanks
