Results 1 to 14 of 14

Thread: regex

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Apr:2004
    Location:
    Posts: 128

    regex

    !
    regular expression, , , .
    "semki 2br na adres 55846" da stane "semki 6br na adres 55846" - () 6 "BR" (\dbr). ? multy rename tool total commander.

    .
    | e3300 4164mhz 1.44v TR ultra 120 extreme | i35p-sg r3.0 | -Data DDR2 800+ 2*2 1040mhz | Hitachi P7K500 500 GB | Gigabyte Radeon 4850 1gb | Lenovo L201p| Lancool PC-K7 | vx450w | DVDRAM GH22NS40 | USB Keyboard (31P8950) |

  2. #2
    Teh AimeR AimeR's Avatar
    Join Date: Dec:2006
    Location: //
    Posts: 4,307
    , , regex-.

    (c++,c#,perl,php) .
    ASUS X570-P|R7 5800X3D@NH-U14S|2X16G DDR4 3200 Corsair VENGEANCE LPX|Samsung 980 PRO 1TB|Radeon RX 7900 XTX 24G|AOC CQ32G1|Corsair RM750x|CM 693

  3. #3
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    total commander-a...

    Find - reg ex : ?<number>\d?
    Replace handle , Replace (match - ); : 'number' ; , , 'number' , ( 2); - , ; , , , : 'number'...
    " , , , , ."

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    regex- () /, //.
    PHP e preg_replace(), subpattern.

  5. #5
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    Code:
    print "\n".join(map(lambda s: "rename %s %s" % (s, re.sub("\dbr", str(int(re.findall("\dbr", s)[0][:-2]) * 3)+"br", s)), glob.glob("*br*")))
    3.
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  6. #6
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    , :-D total commander ...

    anrieff, re(name)place total commander- ? ?
    " , , , , ."

  7. #7
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    Python, standalone .
    - "" .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  8. #8
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    Quote Originally Posted by anrieff View Post
    Python, standalone .
    - "" .


    , , total commander ... Python... 10q anyway
    " , , , , ."

  9. #9
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    binary ,
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  10. #10
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    ... , , , 10
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  11. #11
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , regex ( ) //whatever. , . , , replace. regex pattern , . . , / regex .

  12. #12
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , .
    - sed, .
    sed -
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  13. #13
    Registered User
    Join Date: Dec:2007
    Location:
    Posts: 655
    Quote Originally Posted by anrieff View Post
    sed -
    "" , , "sed" - . , , " ", - / .

  14. #14
    Registered User
    Join Date: Apr:2004
    Location:
    Posts: 128
    , ( ) regex backreference, .
    | e3300 4164mhz 1.44v TR ultra 120 extreme | i35p-sg r3.0 | -Data DDR2 800+ 2*2 1040mhz | Hitachi P7K500 500 GB | Gigabyte Radeon 4850 1gb | Lenovo L201p| Lancool PC-K7 | vx450w | DVDRAM GH22NS40 | USB Keyboard (31P8950) |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |