Advertisement

02.12.2007 at 11:41AM PST, ID: 22161742
[x]
Attachment Details

Regular Expression for String

Asked by sypder in Apache Web Server

Tags: login, regular

In PHP I have a string like:

login[loginemail][email][none]

I want to remove the last two [*], so that it reads:

login[loginemail]

How can I always remove the last two [*]?Start Free Trial
[+][-]02.12.2007 at 01:35PM PST, ID: 18518752

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Web Server
Tags: login, regular
Sign Up Now!
Solution Provided By: gripe
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.12.2007 at 01:56PM PST, ID: 18518913

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32