| View previous topic :: View next topic |
| Author |
Message |
UKN Voice
Joined: 25 Jul 2006 Posts: 1
|
Posted: Tue Jul 25, 2006 11:07 am Post subject: problem with regexp ( ) |
|
|
hey i have found regexp today its very cool but im stuck at 1 thing..
| Code: |
regexp -all {([^a-z]\d{1,3})\s{1,2}(\d+x)\s(\W.\d+\w\W)\s(\w.+)(3cd|4cd|2cd|cd|vinyl|SBD|fm|promo|cdr)(.*)(.tar)} $text - pnum get size name type scene extentsion
|
The bot gives a error when trying to regexp this:
| Quote: |
#1 7x [ 86M] The_Speed_Freak-Banging_Trash-(AA01)-Vinyl-2006-DEF.tar
[16:59] Tcl error [pubm:test]: can't read "pnum": no such variable
|
But when i try to add this one everything is right:
| Quote: |
#1 7x [ 86M] DJ_Chokai-Live_At_Terror_FM_Live-SBD-15-07-2006-1REAL.tar
|
soo.. the problem has to be the (AA01)
but i don't know how to fix it
can someone help me with this? Thanks!!! |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Jul 25, 2006 3:34 pm Post subject: |
|
|
Init the vars before the regexp, with like set pnum "";set get "";set size ""
and so on. The regexp is apparently not grabbing the data to set pnum. I would hazard a guess it's tripping up on the () in the string that you're trying to grab, so perhaps replacing $text with [split $text] to the regexp would help. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Jul 25, 2006 7:10 pm Post subject: |
|
|
This appears to be in relation to file sharing which is against forum policy and no assistance will be given. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|