using preg_match to strip specified underscore in php

Posted by JPro on Stack Overflow See other posts from Stack Overflow or by JPro
Published on 2010-04-15T17:21:27Z Indexed on 2010/04/15 17:23 UTC
Read the original article Hit count: 248

Filed under:

There has always been a confusion with preg_match in php. I have a string like this:

apsd_01_03s_somedescription apsd_02_04_somedescription

Can I use preg_match to strip off anything from 3rd underscore including the 3rd underscore.

thanks.

© Stack Overflow or respective owner

Related posts about php