in reply to Re^3: Reverse fraction of a string
in thread Reverse fraction of a string

Ok. I will.... I'm just a guest here...

Anyhow, can you help?

Replies are listed 'Best First'.
Re^5: Reverse fraction of a string
by Corion (Patriarch) on Sep 19, 2010 at 21:45 UTC

    If you need to do it "with regular expressions", then review your course material on regular expressions.

    What code have you already written?

    What is your code supposed to do, in separate steps?

    How does your code fail to do what you want?

    Maybe working on some examples in ascending difficulty helps you solve your problem:

    Solve the problem of "reversing" for

    1. abcdef
    2. 123456
    3. 123456abcdef
    4. abcdef123456
    5. abcdef123456abcdef
    6. 123456abcdef123456
    7. 123456abcdef123456abcdef123456abcdef123456

    Also review perlre and perlretut.