Jump to content

Question on preg


bigD

Recommended Posts

Hello,

 

I come from a C and PERL background.

 

I seem to have trouble finding how to do this easily.  What is the PERL equivalent of:

 

$var =~ s/^\+//g;    // remove a plus from the beginning, and from the entire string.

 

Thanks.

 

I got it... I was misreading my documentation.

Link to comment
https://forums.phpfreaks.com/topic/213455-question-on-preg/#findComment-1111257
Share on other sites

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.