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
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Imoprter imports movie File twice
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="RoChess" data-source="post: 1092311" data-attributes="member: 18896"><p>RegExp is actually pretty easy once you break it up into small groups. Expresso is an awesome builder/tester of expressions, and it also auto-breaks the long expressions up.</p><p> </p><p>(...) capture group</p><p>(?<name>....) named capture group</p><p>(?:....) capture group, but excluded from results</p><p> </p><p>As to the one for you:</p><p> </p><p>|\s*\[[A-Z\s,]+\]</p><p></p><p>| = like an 'or', so A|B means look for A or B, so it can be added to the existing one</p><p>\s = space, \s* means look for 0+ spaces, if you want to force 1+, then it would be \s+</p><p>\[ = the actual '[' char, because [ is used in Regular Expressions you have to 'escape' it.</p><p>[...]+ = match all the characters within at least 1+, including ranges A-Z = A to Z, \s = space, "," = comma</p><p>\] the actual ']' char, because ] is used in Regular Expressions you have to 'escape' it.</p></blockquote><p></p>
[QUOTE="RoChess, post: 1092311, member: 18896"] RegExp is actually pretty easy once you break it up into small groups. Expresso is an awesome builder/tester of expressions, and it also auto-breaks the long expressions up. (...) capture group (?<name>....) named capture group (?:....) capture group, but excluded from results As to the one for you: |\s*\[[A-Z\s,]+\] | = like an 'or', so A|B means look for A or B, so it can be added to the existing one \s = space, \s* means look for 0+ spaces, if you want to force 1+, then it would be \s+ \[ = the actual '[' char, because [ is used in Regular Expressions you have to 'escape' it. [...]+ = match all the characters within at least 1+, including ranges A-Z = A to Z, \s = space, "," = comma \] the actual ']' char, because ] is used in Regular Expressions you have to 'escape' it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Imoprter imports movie File twice
Contact us
RSS
Top
Bottom