Tag wikis with http links


Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

--DECLARE @tagLinkTable TABLE (TagName nvarchar(35), Link nvarchar(max));

--DECLARE @index int;
--SET @index = 0;

--WHILE (SELECT PATINDEX('%http:%', expression) FROM Tags) > 0

--SELECT t.tagname AS [TagName]
--FROM Tags t
--LEFT JOIN Posts w ON t.WikiPostId = w.Id
--WHERE w.Body LIKE '%http:%'

Declare @Temp Table(Data VarChar(100))

Insert Into @Temp Values('some text 456.09 other 100 text')
Insert Into @Temp Values('even more text 98273.453 la la la')
Insert Into @Temp Values('There are no numbers in this one')

Select Left(
             SubString(Data, PatIndex('%[0-9.-]%', Data), 8000),
             PatIndex('%[^0-9.-]%', SubString(Data, PatIndex('%[0-9.-]%', Data), 8000) + 'X')-1)
From   @Temp

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results