Skip to content
Advertisement

Preg_Mach_All How To Eliminate the Ending Characters

I love preg_mach_all command, but now I have this situation:

JavaScript

The output is this:

JavaScript

I need eliminate the last but i want use this regex beacuse working for me well.In the original data have as the ending for each URL

Thx for your help.

Advertisement

Answer

I’d use:

JavaScript

Explanation:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement