Search Fiddles
Displaying refiddles 176 - 200 of 4507 in total
- 1Revisions0Forks
534892f775622d7a63f90400
(?<=/)v[0-9]+(?=/)Z:/LIVE/Estefan/film/assets/Estefan/tex/hi/tiff/Diffuse_Color/v003/Diffuse_Color_1uv.tiff - 1Revisions1Forks
534892f775622d7a63010500
/\*[\s\S]*?\*//* SELECT * FROM MetadataOfTablesAssociation('StudentGroups', 'Students') */ CREATE function [dbo].[MetadataOfTablesAssociation] ( @FirstTableName sysname, @SecondTableName sysname )/* DECLARE @FirstTableName sysname SET @FirstTableName = 'Students' -- 'AssessmentTestDefinitions' DECLARE @SecondTableName sysname SET @SecondTableName = 'StudentGroups' -- 'AssessmentTestGroups' DECLARE*/ - 1Revisions0Forks
twitter regex
/^@([A-Za-z0-9_]+)/igCorpus tests allow you to unit test your regular expressions using a typical red => green development flow. Test sections are marked indicating if the following lines should (#+) or should not (#-) match the regex pattern. Blank lines are ignored. #+ The following lines will be tested. If they match, they'll be hilighted in green, otherwise they'll be red @john_papa @johnpapa @123456789012345 #- Nothing below this line should match, if it does it'll show up red foo@john_papa 12312@john_papa john_papa johnpapa john papa john@johnpapa.net @1234567890123456 - 1Revisions0Forks
534892f775622d7a63070500
/^@?sindresorhus(?:.com|@gmail.com)?$/gmsindresorhus sindresorhus.com @sindresorhus sindresorhus@gmail.com - 1Revisions0Forks
534892f775622d7a630a0500
/k[^\s]*s/I can haz kittens. Mmmm. Tasty, tasty kittens. - 1Revisions0Forks
Extension finder
/\.jpg$/gmiIdentify the extensions is a certain extensionsimage.jpg imagejpg image.jpg.png - 1Revisions0Forks
534892f775622d7a630d0500
a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - 1Revisions7Forks
DNI/NIE validation
/(^[XYZ]\d{7}\d?|^\d{8})[A-HJ-NP-TV-Z]$/Simple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE X1234567G # Valid, old NIE X01234567H X09375379G # Valid DNI 01234567H 39027217N 77122981W 37354021F 46724451C #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G - 1Revisions25Forks
check
!((^[XYZ]\d{7,8}|^\d{8})[A-HJ-NP-TV-Z]$) This site has no ratingSimple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE format X1234567G Y0336380L # Valid NIE, old format X01234567H X09375379G # Valid DNI format 01234567J 39027217N 77122981W 37354021F #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G 012345 This site has no rating x2792336k - 1Revisions23Forks
53653876M
!((^[XYZ]\d{7,8}|^\d{8})[A-HJ-NP-TV-Z]$)Simple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE format X1234567G Y0336380L 20-25922497-9 # Valid NIE, old format X01234567H X09375379G # Valid DNI format 01234567J 39027217N 77122981W 37354021F #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G 01234567JJ 01234567j - 1Revisions21Forks
534892f875622d7a63300500
!((^[XYZ]\d{7,8}|^\d{8})[A-HJ-NP-TV-Z]$)#+ Some simple tests # Valid NIE format X1234567G Y0336380L # Valid NIE, old format X01234567H X09375379G # Valid DNI format 01234567J 39027217N 77122981W 37354021F #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G 01234567JJ 01234567j - 1Revisions16Forks
X08857353F
/(^[XYZ]\d{7,8}|^\d{8})[A-HJ-NP-TV-Z]$/Simple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE format X1234567G Y0336380L # Valid NIE, old format X01234567H X09375379G # Valid DNI format 01234567J 39027217N 77122981W 37354021F #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G - 1Revisions20Forks
534892f875622d7a634a0500
!([0-9] )Simple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE format X1234567G Y0336380L # Valid NIE, old format X01234567H X09375379G # Valid DNI format 01234567J 39027217N 77122981W 37354021F #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G 01234567JJ 01234567j - 1Revisions24Forks
42930307W
42930307WSimple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE format X1234567G Y0336380L # Valid NIE, old format X01234567H X09375379G # Valid DNI format 01234567J 39027217N 77122981W 37354021F #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G 01234567JJ 01234567j - 1Revisions11Forks
DNI/NIE validation
/(^[XYZ]\d{7}\d?Simple regex to see if a string is a valid DNI/NIE number. DNI/NIE numbers are spanish identification numbers. DNI are for spanish nationals and NIE are for foreigners living in Spain. This will only take you so far. To fully verify the DNI/NIE you will have to: DNI: Take the part in front of the letter. Convert it to a number. User modulus 23 on it. Use the result to index into TRWAGMYFPDXBNJZSQVHLCKE and see if the last letter matches (so for 01234567H you would run 1234567%23 = 19 and the 19:th char in the array is C, the number is not a valid DNI) NIE: If the number is 8 digits long cut the leading letter and run the rest as if it was a DNI. If the number is 7 digits long change the leading letter to a number (X->0, Y->1, Z->2) and run it as if it was a DNI.#+ Some simple tests # Valid NIE X1234567G # Valid, old NIE X01234567H X09375379G # Valid DNI 01234567H 39027217N 77122981W 37354021F 46724451c #- Random variations and common mistakes G1234567G X1234567U 1234567U 234567H X-1234567G - 1Revisions14Forks
Credit Card Expiration Date
/[0-1]\d 20\d\d/gA credit card expiration date needs to be in 'MM YYYY' for various payment gateways#+ Should Pass 09 2012 05 2012 03 2020 01 2099 10 2014 #- Should Fail 09-2012 05.2012 6 2012 6 2012 46 2012 12 2212 09 1000 20 2012 March 2012 01 1999 13 2045 - 1Revisions12Forks
Credit Card Expiration Date
^(3[01]|[12][0-9]|0?[1-9])/(1[0-2]|0?[1-9])/[0-9]{4}$A credit card expiration date needs to be in 'MM YYYY' for various payment gateways#+ Match these 01/02/2013 15/01/2013 2/2/2013 12/01/2013 12/12/2013 #- Don't match these 09-2012 05.2012 6 2012 6 2012 46 2012 12 2212 09 1000 20 2012 March 2012 01 1999 13 2045 02/2/99 13/13/2013 13/32/2013 - 1Revisions1Forks
Clean DNI/NIE input
/[A-Z]*[-.]*[0-9]{8}[-.]*[A-Z]{0,1}/giA rather strict regex for cleaning DNI/NIE input. Just replacing whatever this matches with nothing and run uppercase on the result should give you a nice NIE/DNI.X-09375379-G "X-09375379-G" X.09375379.G x-09375379g +´!"#€%&/()=?`©@£$?§|[]?± 72078974x - 1Revisions2Forks
Clean DNI/NIE input
/[^A-HJ-NP-TV-Z0-9]/giA rather strict regex for cleaning DNI/NIE input. Just replacing whatever this matches with nothing and run uppercase on the result should give you a nice NIE/DNI.X-09375379-G "X-09375379-G" X.09375379.G x-09375379-g +´!"#€%&/()=?`©@£$?§|[]?± - 1Revisions2Forks
534892f975622d7a636e0500
/[0-9-+.]+(:\.[0-9]*)?/igrotate(-2.79deg) rotate(+2.79deg) - 1Revisions1Forks
534892f975622d7a636f0500
/^(\\/)()(aspx)/gim/SearchSite/NewDesign/Controls/HomePage/categorywidget.aspx - 1Revisions3Forks
Match CSS Properties
/((box-shadow)+[:])/gm.hello { background: color; hello: color; box-shadow: 0 0 0 rgba(0,0,0,0.2); box-shadow: }