SynoLoad - RegExp Validator

 

A regular expression can be quite big. As a general rule, you would type the tag names (ex: <something[^<>]*> to match <something some="thing" foo="bar"> and [^<>]* for in between stuff)

Then, once an item is recognized, you will need to identify the good stuff, such as LINK, TITLE and SIZE. For this, use "(" and ")". Then, with the list at the bottom of the application, you will be able to see which index to put in SynoLoad (first line in the list is "0").

For example: To match the title in :

<title something="blah">Title to catch</Title><Another blah="bip"/><Link>http://link.to/catch</Link>

You would enter :

<title[^<>]*>([^<>]*)</Title><Another[^<>]*/><Link[^<>]*>([^<>]*)</Link>

And specify title index as "1" and link index as "2". The result will be "Title to catch" and "http://link.to/catch"

Follow jerome_dev on Twitter