i have the following:

sudaneseonline.com/cgi-bin/posting/posting"sometext...

I want to get the string up to the: " char, after the 'g' and before the 's'.
Note- the string has no spaces.

Thanks in advance.

Recommended Answers

All 2 Replies

Try

explode('"', 'sudaneseonline.com/cgi-bin/posting/posting"sometex');

You'll get the string up to double quotes ".

Actually, you'll get an array with both parts.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.