Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:10:32+00:00 2026-05-27T10:10:32+00:00

I have the following problem i need in array 3 the languages names not

  • 0

I have the following problem i need in array 3 the languages names not the hex code
on array 4 i want only the audio codecs not anything other like hex values or something.

I have no solution i have all tested but all is wrong.
Can someone help me ?

Here are the regex data:

Stream #0:1[0x1100](ger): Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, 5.1(side), s16, 1536 kb/s
Stream #0:2(eng): Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16, 1536 kb/s
Stream #0:3: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s
Stream #1:0: Audio: mp2, 41000 Hz, stereo, 48 kb/s

Here is my regex

/Stream #([0-9\.]+)?:([0-9\.]+).([A-Za-z][A-Za-z]*)?.+Audio: ([^,]+?), ([0-9]+) Hz, ?([^\n,]*)/

Here is the output array:

Array
(
[0] => Array
    (
        [0] => Stream #0:1[0x1100](ger): Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, 5.1(side)
        [1] => Stream #0:2(eng): Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side)
        [2] => Stream #0:3: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo
        [3] => Stream #1:0: Audio: mp2, 41000 Hz, stereo
    )

[1] => Array
    (
        [0] => 0
        [1] => 0
        [2] => 0
        [3] => 1
    )

[2] => Array
    (
        [0] => 1
        [1] => 2
        [2] => 3
        [3] => 0
    )

[3] => Array
    (
        [0] => 
        [1] => eng
        [2] => 
        [3] => 
    )

[4] => Array
    (
        [0] => dts (DTS) ([130][0][0][0] / 0x0082)
        [1] => dts (DTS-HD MA) ([134][0][0][0] / 0x0086)
        [2] => mp2 ([3][0][0][0] / 0x0003)
        [3] => mp2
    )

[5] => Array
    (
        [0] => 48000
        [1] => 48000
        [2] => 48000
        [3] => 41000
    )

[6] => Array
    (
        [0] => 5.1(side)
        [1] => 5.1(side)
        [2] => stereo
        [3] => stereo
    )

)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:10:32+00:00Added an answer on May 27, 2026 at 10:10 am

    One tries to get cue’s when free-form parsing. Its usually inadequate based only on a small sample text only because you can’t see the generating program.

    Taking that into account, this might fix up your basic concern. But I would break it up into a few known simple parts, then parse those separately.

    Stream[ ]+\#
    ([0-9.]+)? : ([0-9.]+)         # 1,2  title : chapter
    [^:(]* (?:\(([^)]*)\))?        # 3    language
    [^:]* :
    [ ]* Audio:
    [^(\w,]* (\w*)                  # 4   aud codec
    [^,]* , 
    [ ]*([0-9]*)[ ]* (?i:[mkhz]+)   # 5   aud frequency
    [^,]* , 
    [ ]* ([^\n,]*)                  # 6   aud chan's
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following problem. I have an array of bytes that I want
I have the following problem: We need to find the next august. I other
I have the following problem: I need to use XSLFO to generate a 2-column
I have following problem, Code: String a=Yeahh, I have no a idea what's happening
Hy guys! I have the following problem: I need to hash an unsigned byte
i have a problem where I need to have an array as a value
Now here's a fun problem. I have an object array as the following: objRequests
i have the following problem (new to jstl), need to create 4 columns of
I welcome any help for the following code optimization problem: I have a collection
I have the following problem: I need to validate data in a controller, which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.