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.

Try

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

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

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.