Jump to content

[SOLVED] PHP function - preg_replace HELP PLEASE!


coder330

Recommended Posts

Hi , i am having a really hard time with preg_replace...it would be great if someone can help me out.

 

so lets say i have a string "aabdbs-565-djdjdhjj990.fhfh4"

 

I only want the numbers between -'s...so i only want either "-565-" or "565"

anyone know how to use preg_replace to get that?

 

thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.