{"repo":"hotmeteor/regex","free":true,"listed":false,"github":"https://github.com/hotmeteor/regex","clone":"git clone https://github.com/hotmeteor/regex.git","description":"A set of ready-made regex helper methods for use in your Laravel application.","language":"PHP","stars":244,"topics":["laravel","php","regex","library"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Regex A set of ready-made regex helper methods for use in your Laravel application. Installation Usage Regex comes with a set of common regex patterns that are ready to use. These patterns can be used to either replace or match against values. Every pattern is both case-insensitive and able to interpret unicode characters, and should support all languages. Additionally, beyond the methods below both the underlying match and replace methods are exposed to pass in custom patterns. Match Match methods return true or false depending on if the subject value contains anything but the expected pattern. You may optional allow whitespace by passing true as a second parameter. Methods Checks if the value contains anything but letters. Checks if the value contains anything but letters and numbers. Checks if the value contains anything but letters, numbers, and .- . Checks if the value contains anything but integers. Checks if the value contains anything but numeric values, including decimals and negative numbers. Does not allow for whitespace. Checks if the value is a UUID. Does not allow for whitespace. Checks if the value is an IPv4 address. Does not allow for whitespace. Checks if the value is an IPv6 address. Does not allow for whitespace. Replace Replace methods replace anything in the subject value that doesn't match the pattern with the provided replacement. The default replacement is nothing: it just removes the character. Methods Replaces all characters in the subject except le","default_branch":null,"files":null,"tree":[],"storefront":"/r/hotmeteor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hotmeteor/regex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}