home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Language specific support
Deutsches MediaPortal Forum
Hard- und Software rund um den HTPC
Hardware
TV-Karten
Digital Devices Octopus NET CT/2 Erfahrungen?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1065207" data-attributes="member: 82144"><p>Big thanks Kay! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /></p><p>This was a silly bug from me. As you can see from the presence of:</p><p></p><p>...I did know that timeout is optional, but I didn't write the regex correctly.</p><p>Could you please try this modified regex:</p><p>[code]private static readonly Regex REGEX_RTSP_SESSION_HEADER = new Regex(@"\s*([^\s;]+)(;timeout=(\d+))?");[/code]</p><p></p><p>Note the added "?" means "optional part".</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1065207, member: 82144"] Big thanks Kay! (y) This was a silly bug from me. As you can see from the presence of: ...I did know that timeout is optional, but I didn't write the regex correctly. Could you please try this modified regex: [code]private static readonly Regex REGEX_RTSP_SESSION_HEADER = new Regex(@"\s*([^\s;]+)(;timeout=(\d+))?");[/code] Note the added "?" means "optional part". [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Hard- und Software rund um den HTPC
Hardware
TV-Karten
Digital Devices Octopus NET CT/2 Erfahrungen?
Contact us
RSS
Top
Bottom