The way to do it in SQL :
SELECT SUBSTRING( string , LEN(string) - CHARINDEX("https://stackoverflow.com/",REVERSE(string)) + 2 , LEN(string) ) FROM SAMPLE;
JSFiddle here http://sqlfiddle.com/#!3/41ead/11
More Related Contents:
- How do I split a string so I can access item x?
- T-SQL split string
- How do I split a delimited string so I can access individual items?
- Split one column value into multiple column values
- The multi-part identifier could not be bound
- Subquery using Exists 1 or Exists *
- How can I query a value in SQL Server XML column
- Most efficient T-SQL way to pad a varchar on the left to a certain length?
- SQL – How to store and navigate hierarchies?
- SQL Server indexes – ascending or descending, what difference does it make?
- SQL Query to get aggregated result in comma separators along with group by column in SQL Server
- Update records in table from CTE
- Write a number with two decimal places SQL Server
- how can I Update top 100 records in sql server
- How to insert multiple records and get the identity value?
- How can a LEFT OUTER JOIN return more records than exist in the left table?
- Count Number of Consecutive Occurrence of values in Table
- Group DateTime into 5,15,30 and 60 minute intervals
- How to replace (null) values with 0 output in PIVOT
- Is there a SELECT … INTO OUTFILE equivalent in SQL Server Management Studio?
- How can I compare time in SQL Server?
- Column name or number of supplied values does not match table definition
- Get the records of last month in SQL server
- Merge overlapping date intervals
- Script to save varbinary data to disk
- Access to Result sets from within Stored procedures Transact-SQL SQL Server
- alternatives to REPLACE on a text or ntext datatype
- SQL poor stored procedure execution plan performance – parameter sniffing
- How to find out what is locking my tables?
- Export table data from one SQL Server to another