Results 1 to 3 of 3

Thread: REGEX Question

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36

    REGEX Question

    Hi,

    I have this line:

    4311396mS CD: CALL: 2.5.1 State=2 Cut=1 Music=1.0 Aend="Line 2" (1.5) Bend="Tech(19)" [Queue] (11.0) CalledNum=Tech () CallingNum=111111111 () Internal=0 Time=19781 AState=3

    It is possible, with REGEX help, to extract data as follows:

    Only 111111111 (can be word all sow) where string starts with CallingNum=

    I can extract CallingNum=111111111, but I need only numbers
    Last edited by Fizikas; May 12th, 2005 at 03:28 AM.
    Fizikas

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: REGEX Question

    Put (brackets) around the 111111111 and use then retrieve the appropriate sub-match.

    I haven't got any code at the moment, sorry.
    I don't live here any more.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Lithuania
    Posts
    36

    Re: REGEX Question

    Something like CallingNum=(.*?\s)

    ???
    Fizikas

Posting Permissions

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



Click Here to Expand Forum to Full Width