...all but the first x chars in a string of arbitrary length?
Apologies if this is the wrong forum; I wasn't sure the best place to post about Regex.
Background: I am new to Regex for pattern matching.
I have started using Yahoo Pipes to manipulate RSS feeds. Yahoo Pipes includes a regex gadget to do string manipulation, but no "stateful" programming.
My goal is to truncate a string of arbitrary length to a fixed length (of, say, the first 15 chars), to produce something like:
"Man bites dog..." from a starting string that looks like "Man bites dog in dark alley."
Counting from the end of the string and doing it from that direction is a problem, because each string will be of a different length.
The Yahoo Pipes regex parser only allows the replacement of static text (including deletions) for matched text.
So I can find the first 10 chars as ^.{10} but I'm struggling with negation and other tricks in order to match all but the first x chars!
Is this an easy problem for a resident regex expert?
Thanks in advance to anyone who can crack this for me!
Paul M.