Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.56 KB

resources.md

File metadata and controls

67 lines (43 loc) · 1.56 KB

Resources

Regular Expressions

Regular Expression to extract parameters with converters:

  • /((:(\w+))|(\{((\w+)(\((.*?)\))?:)?(\w+)\}))(/)?

regex utilities:

examples:

/home/:param/here/:another
/home/:param/here
/home/:param

/Book/:book/Chapter/:chapter
/Book/Chess/Chapter/10

/home/{param}/here/{another}
/home/{param}/here
/home/{param}

/home/{regex:param}/here/{another}
/home/{regex():param}/here
/home/{regex(aregularexpresion):param}/next/{regex(aregularexpresion):param}
/home/{regex('\w):p\}','g'):param}/next/{regex(aregularexpresion):param}

/home/{regex({ pattern: '\w):p\}', flags: 'g' }):param}/next/{regex(aregularexpresion):param}

$&
^\\/Book/([^\\/]*)/Chapter/([^\\/]*)/?$
/((:(\w+))|(\{((\w+)(\((.*?)\))?:)?(\w+)\}))(/)?

Testing Resources

Promises

Fiddles

Other stuff

Continous Ingegration

These options are considered: