Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (24 sloc) 982 Bytes
// Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods.
// Website & Documentation:
// Issues:
// License (MIT):
// More projects:
// Copyright © ZZZ Projects Inc. All rights reserved.
using System;
using System.Linq;
using System.Text.RegularExpressions;
public static partial class Extensions
/// <summary>
/// A string extension method that extracts all Int64 from the string.
/// </summary>
/// <param name="this">The @this to act on.</param>
/// <returns>All extracted Int64.</returns>
public static long[] ExtractManyInt64(this string @this)
return Regex.Matches(@this, @"[-]?\d+")
.Select(x => Convert.ToInt64(x.Value))
You can’t perform that action at this time.