Current location: Hot Scripts Forums » Programming Languages » Perl » Regular Expression search pattern


Regular Expression search pattern

Reply
  #1 (permalink)  
Old 06-01-05, 03:12 PM
KHWright KHWright is offline
New Member
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Regular Expression search pattern

Hi, everyone:

I am new member of this discussion group and I need your help. I wrote the folliwng search pattern to get the cell numbers (see the file bellow) in the 4th collumn and save them as "bts", but it does not work. Will you help me troubleshoot the problem(s), please? Thanks.

pattern = "(?: (A-Z0-9-_)*)\s+(?:-|1)\s+(?:-|d+)\s+(?:-|Alpha|Beta|Gamma|Delta|Epsilon|Zeta|Eta|Theta|Iot a|Kappa)\s+(?<bts>\d+)\s+"

Here is part of the file I want to get the cell numbers:

BSMCI > table msector



MSECTOR > view full
view full


MSECTOR > list all
list all
WARNING: This table has 1505 entries.
Listing them all may take some time.
CELLNAME NUM FREQ SECTOR CELL BAND PILOT MCTATH MCTAPR PILOTG SYNCG PAGEG HOBTH CBTH MPTTPR RFMNUM ALDUSERS RADIOCFG NUMPCH PAGEFREQ EXTFREQ CL ECLRQI ECLFREQ ECLRQCI SRL FEFSCAVGPOW FEFSCVARPOW VCFSCTOTPOW MAXFWDDRATE MAXREVDRATE RCDAVSELN RCDAVAADJ RCDADSELN RFCHGCAPTHR 3G2GTHRG SYNCCH TXPFDC PRAT SCHAPM ACHACQSW ACHDEMSW TCHAQSW TCHDEMSW NUMQPCH QPCHRATE QPCHPLP RLGAINTP MAXVOICE MAXDATA MAXDFCH MAXDSCH ENHSRSH ECELLRINGS PCOCE ACOCM
================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================


-1900bandDefault- - - - - 1900 120 64 0 164 64 138 0 256000 -202 1 Nochecking Voice2G 1 0 0 () F () () () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 6 Full 0 2400 500 500 500 0 4800 Same 0 100 0 50 100 F 0 F Off

-800bandDefault- - - - - 800 120 64 0 164 64 138 0 256000 -202 1 Nochecking Voice2G 1 0 0 () F () () () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 6 Full 0 2400 500 500 500 0 4800 Same 0 100 0 50 100 F 0 F Off

MC1900BTS750_GROWTH 1 750 Alpha 750 1900 136 2 0 127 45 106 0 112800 -239 1 Nochecking Data3G1xEVDO 1 750 2047 (750) F (750) (F) () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 2400 2400 500 600 0 4800 Same 0 85 100 95 100 F 0 F Off

MC1900BTS750_GROWTH 1 750 Beta 750 1900 140 2 0 127 45 106 0 112800 -239 2 Nochecking Data3G1xEVDO 1 750 2047 (750) F (750) (F) () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 2400 2400 500 600 0 4800 Same 0 85 100 95 100 F 0 F Off

MC1900BTS750_GROWTH 1 750 Gamma 750 1900 144 2 0 127 45 106 0 112800 -239 3 Nochecking Data3G1xEVDO 1 750 2047 (750) F (750) (F) () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 2400 2400 500 600 0 4800 Same 0 85 100 95 100 F 0 F Off

MC1900BTS751 1 725 Alpha 751 1900 4 2 0 180 0 0 0 220000 -170 1 Nochecking Voice2G 1 725 725 (725) F () () () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 1000 512 512 512 0 4800 Same 0 100 0 50 100 F 0 F Off

MC1900BTS751 1 725 Beta 751 1900 8 64 0 180 0 0 0 220000 -170 2 Nochecking Voice2G 1 725 725 (725) F () () () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 1000 512 512 512 0 4800 Same 0 100 0 50 100 F 0 F Off

MC1900BTS751 1 725 Gamma 751 1900 12 64 0 180 0 0 0 220000 -170 3 Nochecking Voice2G 1 725 725 (725) F () () () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 1000 512 512 512 0 4800 Same 0 100 0 50 100 F 0 F Off

MC1900BTS751 1 750 Alpha 751 1900 160 2 0 127 45 106 0 112800 -239 1 Nochecking Data3G1xEVDO 1 750 2047 (750) F (750) (F) () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 2400 2400 500 600 0 4800 Same 0 85 100 95 100 F 0 F Off

MC1900BTS751 1 750 Beta 751 1900 164 2 0 127 45 106 0 112800 -239 2 Nochecking Data3G1xEVDO 1 750 2047 (750) F (750) (F) () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 2400 2400 500 600 0 4800 Same 0 85 100 95 100 F 0 F Off

MC1900BTS751 1 750 Gamma 751 1900 168 2 0 127 45 106 0 112800 -239 3 Nochecking Data3G1xEVDO 1 750 2047 (750) F (750) (F) () 20 20 20 SDRL16x SDRL16x rcda0 0 rcda0 0 60 T 9 Full 0 2400 2400 500 600 0 4800 Same 0 85 100 95 100 F 0 F Off

Thanks,

KHWright
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-22-05, 12:38 AM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
Hi KHWright,

1) Can you show your code that's not working?
2) What, exactly, is not working? Please be detailed here.
3) What database are you working with?

~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!!! - Invalid preceding regular expression CMIVXX PHP 1 01-04-05 04:55 AM
SEO Expert Available nakulgoyal Job Offers & Assistance 2 08-14-04 01:38 PM
suggest a regular expression gmadhukarreddy Perl 2 01-08-04 01:56 AM
Declared Functions skipper23 PHP 4 12-17-03 11:06 AM
index page not showing up skipper23 PHP 3 12-15-03 02:10 PM


All times are GMT -5. The time now is 01:49 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.