Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3212738
By: nobody

I have a stream of data, e.g.:

11111'222?'22'33?'333'44444'55555'

I want to insert a \n after those apostrophes that are *not* preceded by a ?.

Expected output:

11111'
222?'22'
33?'333'
44444'
55555'

I used the substitution:

s/\([^?]\)'/\1'\n/g

but this didn't work... it replaced those that *did* have a ? in front - I want
the opposite.

Any suggestions?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to