Skip to content

Instantly share code, notes, and snippets.

View hetfirma's full-sized avatar
🎯
Focusing

Robert Sikkens hetfirma

🎯
Focusing
View GitHub Profile
@hetfirma
hetfirma / IBAN_Regex.md
Created April 4, 2024 09:35 — forked from akndmr/IBAN_Regex.md
Global IBAN regex
const val IBAN_REGEX =  "^([A-Z]{2}[ '+'\\\\'+'-]?[0-9]{2})(?=(?:[ '+'\\\\'+'-]?[A-Z0-9]){9,30}\$)((?:[ '+'\\\\'+'-]?[A-Z0-9]{3,5}){2,7})([ '+'\\\\'+'-]?[A-Z0-9]{1,3})?\$"

Successfully tested against below IBAN samples.

Length
Country(TR) Country Code
@hetfirma
hetfirma / PostToUrlAsJson.cs
Last active April 5, 2024 21:55 — forked from alirobe/PostToUrlAsJson.cs
Umbraco Forms Workflow - POST to URL as JSON (with optional Bearer Access Token). Just place this file anywhere in your Umbraco+Forms project, and the dependency injection will pick it up. This will allow you to connect to Microsoft Flow or Zapier or any integration web service, from which you can send to Salesforce/Dynamics/etc.
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Dynamic;
using System.Net;
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
using System.Text;
using Umbraco.Cms.Core.Models.PublishedContent;