regular expression : length minimal

Discussion in 'Perl Misc' started by borges2003xx@yahoo.it, Sep 25, 2005.

  1. Guest

    i find three substring of length 2 (also repeated) followed after a
    while to a reverse sequences (also repeated)

    i use:
    $a=~s/(.{2,})+(.{2,})+(.{2,})+.*\3+\2+\1+/$1 $2 $3/o;

    how to be sure in regular expression that length $1+$2+$3 must be more
    l?
    thanx a lot from deep of my soul


    >The {2,} means two or more, is that what you want? yes two or more symbols substrings
    > The {1,} means 1 or more, so is the same as '+'. yyes is true


    i ask in simple way that the three substrings must be globally of
    length for example 10.

    thanks a lot
    , Sep 25, 2005
    #1
    1. Advertising

  2. Dr.Ruud Guest

    schreef:
    > i find three substring of length 2 (also repeated) followed after a
    > while to a reverse sequences (also repeated)


    You are breaking the thread again. See
    http://groups.google.com/googlegroups/posting_faq.html
    and especially this part: click on the "Post a Follow-up" link.

    --
    Affijn, Ruud

    "Gewoon is een tijger."
    Dr.Ruud, Sep 25, 2005
    #2
    1. Advertising

  3. Guest

    sorry for my netiquete. i'm a primitive.
    by the way: can you gime an answer on the proposed problem or not?
    , Sep 25, 2005
    #3
  4. Dr.Ruud Guest

    schreef:

    > can you gime an answer on the proposed problem or not?


    See Matt Garrish's reaction in your 'another help' thread.

    --
    Affijn, Ruud

    "Gewoon is een tijger."
    Dr.Ruud, Sep 25, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VSK
    Replies:
    2
    Views:
    2,272
  2. Peter Blum

    Re: 0 length string Regular Expression

    Peter Blum, Sep 21, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    380
    Peter Blum
    Sep 21, 2004
  3. =?Utf-8?B?dG1laXN0ZXI=?=

    0 length string Regular Expression

    =?Utf-8?B?dG1laXN0ZXI=?=, Sep 20, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    334
    =?Utf-8?B?dG1laXN0ZXI=?=
    Sep 20, 2004
  4. =?Utf-8?B?TWlrZSBNb29yZQ==?=

    Max Length Control Regular Expression

    =?Utf-8?B?TWlrZSBNb29yZQ==?=, Nov 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    18,241
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Nov 20, 2004
  5. Replies:
    14
    Views:
    1,202
    fuzzylollipop
    Jan 25, 2006
Loading...

Share This Page