Fiddles by Paul Alexander
- 3RevisionsForks
53ae38b075622d2770990700
/(%\s+BEGIN FASTFOOD.*(\[\w+\]).*%\s+END FASTFOOD \2)/m% /etc/fstab: static file system information. % % Use 'blkid' to print the universally unique identifier for a % device; this may be used with UUID= as a more robust way to name devices % that works even if disks are added and removed. See fstab(5). % % <file system> <mount point> <type> <options> <dump> <pass> % / was on /dev/vda1 during installation UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 % BEGIN FASTFOOD [swap] 2014-06-27 20:30:10 -0700 % Do not modify these lines. They will be overwritten on next fastfood run. happy happy joy joy % END FASTFOOD [swap] - 4RevisionsForks
539b201e75622d2770ff0000
/(\/[^\/]+\/photo\.)(\w+)/Get any size avatar from google.//lh5.googleusercontent.com/-aOdWjUUab2g/AAAAAAAAAAI/AAAAAAAAABE/NxnN9nX61yw/s120-c/photo.jpg - 3RevisionsForks
539b0c5f75622d2768e60000
/\.jpg/Replace flickr buddy icon file name for larger 300 px version.https://farm4.staticflickr.com/3896/buddyicons/124055216@N05.jpg?1402669765 - 1RevisionsForks
Vimeo token expiration error
/401.*expired/#+ 401: Permission Denied, explanation: The oauth_token passed was either not valid or has expired. - 4RevisionsForks
Istagram token expiration error
/400.*access_token/#+ GET https://api.instagram.com/v1/users/self.json?access_token=5921094.b7369bb.c4733c89b7f14df2bdb6c5e72104ae12: 400: The access_token provided is invalid. #- GET https://api.instagram.com/v1/users/self.json?access_token=5921094.b7369bb.c4733c89b7f14df2bdb6c5e72104ae12: 400: The provided is invalid. - 4RevisionsForks
DSL updater methods
/^(?<method_name>with|followed_by|append)_(?<updater_name>[a-z_0-9]+)/#+ DSL Methods with_capture with_no_op with_post followed_by_active_record append_capture followed_by_url_resolver #- Invalid with_Capture and_append with build_with followed_by append without appendix followed_bys - 2RevisionsForks
536284cd75622d41b4600700
/img[^>]+src="http:/g<img class="img-circle lazy" data-original="http://v.cdn.vine.co/r/avatars/8FDE396FD21068486621294432256_2877e2ade59.0.1.jpg?versionId=wQNqaZmJaVQBiygEmeemKpQkSZWq73.m" src="http://v.cdn.vine.co/r/avatars/8FDE396FD21068486621294432256_2877e2ade59.0.1.jpg?versionId=wQNqaZmJaVQBiygEmeemKpQkSZWq73.m" style="display: inline;"> - 1RevisionsForks
YouTube URL Splitter
/(youtube\.com|youtu\.be)\/watch\?v=([_a-zA-Z0-9]+)/#+ YouTube https://www.youtube.com/watch?v=_uwNGESySWy - 2RevisionsForks
5356e86875622d41b6fc0100
/^(east|west)\s+/ig#+ Match directional cities East Los Angeles West Lost Angeles - 1RevisionsForks
5348db2475622d29b1010000
/(?<!Mr|Ms|Mrs)\\./Example for question http://stackoverflow.com/questions/23025708/ignore-prefix-titles-like-mr-when-using-regex-splitMr. and Mrs. X did so and so. Blah blah blah. - 2RevisionsForks
Hashtag
/([^&])(#[a-zA-Z0-9_]+)/gMatches hash tags embedded in text.#:! !+ #foobar #foo_bar #foo#bar #f00bar #foo-bar #FooBar #f #123 !- #?oo?ar #_ #! I am #awesome Only the #tag(notme) #ca$h #ca^t #ca+s #dogs</p> Doesn't Super#Man "<p>4 in 1 convertible crib and dresser/changing table. Purchased crib for $250 and dresser for $300. Asking $300 for both. Both are in excellent condition. Solid wood and heavy. Dresser has one drawer on top, 3 in the middle and two cabinets. Brand for both is Sorelle, Tuscany collection. Located in South Temecula.<br />#crib #dresser #changingtable #nursery #furniture #convertible </p>" - 1Revisions4Forks
US Zip code 5/9
/\A[0-9]{5}(-[0-9]{4})?\z/Matches US zip codes#+ 12345 67890 12345-5678 #- 123-45 ABCDE - 1Revisions0Forks
Case Party is Person
/^[\w-]+, /g#+ JONES, BRENDA G BARTHOLOMEW, HOWARD F CORLEY-BRADSHAW, RUBBIE J #- WELLS FARGO FINANCIAL SYSTEM FLORIDA INC WELLS FARGO FINANCIAL SYSTEM FLORIDA, INC TENANT #3 TENANT #1 BENEFICIAL FLORIDA INC - 1Revisions7Forks
Simple US phone regex
/^\(\d{3}\)\s?\d{3}-\d{4}|((\d{3}\.){2}\d{4})|((\d{3}\-){2}\d{4})$/g#+ (123) 456-7890 123.456.7890 123-456-7890 - 1Revisions4Forks
Matches US Currency
/\$[0-9]{1,3}(,[0-9]{3})*(\.[0-9]{2})?/igMatches US Currency and commas must be in the correct location.#+ $200,213,213.92 $204.50 $4.50 $24.50 $1,204.50 $30,204.50 $100,204.50 $5 #- 200.43 200.93 - 1Revisions0Forks
Convert url path to partial style path.
/\/([^_]([^\/])+)$/gm#+ profiles/deets profiles/the/deets #- profiles/_deets profiles/the/_deets - 1Revisions5Forks
Pattern for splitting a title or camel cased string into separate words
/(?<=[a-z])(?=[A-Z])/gsingle multiWord Title CamelCase - 1Revisions4Forks
US Phone Number w/o Extension
/\+?1?\s?[\-\(\.]?[0-9]{3}[\-\)\.]?\s?[0-9]{3}[\-\.\s]?[0-9]{4}/g#+ 1-888-235-7890 +1-888-235-7890 888-235-7890 1 (888) 235-7890 (888) 235-7890 1.888.235.7890 18882357890 8882357890 888.235.7890 888 235 7890 #- 123456789 123 456 789 1 234 5678 234 5678 - 1Revisions0Forks
Validates a JSON number
/^-?\d+(\.\d+([eE][+-]\d+)?)?$/g#+ 1 -2 0 0.1 9.5 1.5e+1 8.5E-10 15 #- 11.45 e+1 8.5 E-10 .9 - 1Revisions0Forks
Typical error code prefixes
/^(E(RR(OR)?)?|W(A?RN(ING)?)?|M(SG)?|MESSAGE)_.*$/g#+ Valid Error Codes E_FAIL E_SUCCESS ERR_INVALID_HANDLE ERROR_OUT W_MISSING WRN_ROUNDED_DOWN WARN_TIMEOUT WARNING_SLOW M_NAME MSG_PROCESSOR MESSAGE_TO_ME - 1Revisions1Forks
534892f375622d7a63810400
/[^#].*/g#+ Valid strings I'm just a string I can have a # in the middle or at the end# #- Invalid #No way #hashtag - 1Revisions2Forks
Split multiple verse references
/((\d+)(:(\d+(-\d+)?)))|(\d+(\s?-\s?\d+)?)/g6:4, 8 8:1-10 1:6 & 6:3 2:4-6, 7-10 28:19, 31:2 - 1Revisions6Forks
534892f175622d7a632c0400
/([^,]*),(.*)/gm1325318514,197.1,184.9,172.4,146.0,147.3,131.1,280.9,182.7,12.6,5.0,0.0,73001,65848,0 1325318536,196.2,184.2,172.1,146.3,147.1,131.1,264.9,175.6,12.6,5.0,0.0,71590,64616,0 1325318557,196.6,184.9,172.1,147.6,146.8,130.9,264.9,178.4,12.6,5.0,0.0,69607,61274,0 1325318578,196.7,184.2,172.1,148.4,146.8,130.6,255.9,174.0,12.5,5.0,0.0,74127,59221,0