vail~

It's not a silly question. Perl, which takes good advantage of grep- like regular expressions, has a built-in function to do exactly what you seek if you first stick the string you want to print "backwards" into an array:

        #! /usr/bin/perl
        @backwards = reverse qw / markstanley johndoe janedoe /;
        # will print those three strings in their reverse order:
        # janedoe, johndoe, markstanley
        print "@backwards\n";
        $backwards = reverse qw / markstanley johndoe janedoe /;
# will print those three strings as one string, reading from right to left:
        # eodenajeodnhojyelnatskram
        print "$backwards\n";

It sounds like you're seekinkg the latter solution.

~Semper Fi, Mac!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

On Aug 20, 2007, at 5:30 AM, After Hours wrote:

I realize this is a silly request, but I've not found an answer --

I need to reverse the type of a selection.

E.g.,


markstanley     needs to become  yelnatskram

and I have a long list of these. Surely there's an easy fancy grep- tastic mechanism that escapes me.

(apologies to all you dyslexics)

vail

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>



--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to