# Urgent and probably REALLY simple

**URL:** <https://forum.kirupa.com/t/urgent-and-probably-really-simple/173141>\
**Category:** Uncategorized\
**Created:** [December 21, 2005, 5:13pm UTC](https://forum.kirupa.com/t/urgent-and-probably-really-simple/173141 "2005-12-21T17:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpelland](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mpelland](https://forum.kirupa.com/u/mpelland)\
**Post date:** [December 21, 2005, 5:13pm UTC](https://forum.kirupa.com/t/urgent-and-probably-really-simple/173141/1 "2005-12-21T17:13:49Z")

</div>

hey,  
I am now officially brain dead, but I still have to deliver the site today.

so there is one thing that is holding me back… i have to format a string to fit in an url. the issue is that the string may contain linebreaks, i need to do a search and replace for them

I am using this:  
stringname.split(pattern).join(replacement)

and I just need to know what pattern to use for the new line.

have tried newline and "  
" to no avail
