Tuesday, 3 September 2013

Escape character for empty string

Escape character for empty string

I have problem with a long product name :
TONER PRO HP LASERJET
1000/­1005/­1005W/­1200/­1220/­3300/­3310/­3320/­3330/­3380 C7115A (15A)
I need to break this product name on end of line,but my require is, allow
only break after "/"
So result shold look like this:
TONER PRO HP LASERJET 1000/­1005/­1005W/­1200/­
1220/­3300/­3310/­3320/­3330/­3380 C7115A (15A)
I tried to replace character "/" with /­ But it generates a hyphen in
the end of line :(.
Does exist any escape character, what behave like empty string but allow
me to break my string on specified place ?
Thank for any advice :)

No comments:

Post a Comment