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

Bintuch:

You should have specified that in your original post then, as there are quite a few ways to do it without regular expressions. Had anyone spent any time answering your question, it would have been wasted if you need to use a regex.

Please read the following articles before your next post: Ask questions the smart way, I know what I mean. Why don't you? and How (Not) To Ask A Question.

...roboticus

Replies are listed 'Best First'.
Re^4: Reverse fraction of a string
by Bintuch (Acolyte) on Sep 19, 2010 at 21:36 UTC

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

    Anyhow, can you help?

      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.