Yes, you just need to pass the correct SQL. Here is a snippet of a SQL script of mine that adds Regex support as a stored procedure, you can modify this to your needs.
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RegexMatch]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[RegexMatch]
GO
IF EXISTS (SELECT * FROM sys.assemblies asms WHERE asms.name = N'Msdn.SqlRegex')
DROP ASSEMBLY [Msdn.SqlRegex]
GO
--------------------------------
--Create the clr program to do the regex
--------------------------------
CREATE ASSEMBLY [Msdn.SqlRegex]
AUTHORIZATION [dbo]
FROM 0x4D5A90000300000004000000F(SNIP)
WITH PERMISSION_SET = SAFE
GO
ALTER ASSEMBLY [Msdn.SqlRegex]
ADD FILE FROM 0xEFBBBF7573696E672053797374656D(SNIP)
AS N'Properties\AssemblyInfo.cs'
GO
ALTER ASSEMBLY [Msdn.SqlRegex]
ADD FILE FROM 0x7573696E672053797374(SNIP)
AS N'RegexMatch.cs'
GO
CREATE FUNCTION [dbo].[RegexMatch](@input [nvarchar](max), @pattern [nvarchar](4000))
RETURNS [bit] WITH EXECUTE AS CALLER
AS
EXTERNAL NAME [Msdn.SqlRegex].[UserDefinedFunctions].[RegexMatch]
GO
To get the three byte arrays just add the assembly once by hand and then go in to Sql Server Management studio and go to Programability->Assemblies
right click on your assembly and go to Script Assembly as->Create To->New Query Editor Window
and use that as your source.