Hi
I have a string like - A and b and ( C or D )
For now, i am taking whitespace as a token so user has to insert whitespace while using (,) ie ( C or D )
I am writing a code so that user wont have to worry about the inserting whitespaces while using ( )-. (C or D) or (C or D ) should work
I want whatever he enters(with/without whitespace) ,my code parses and replaces simple "(" or "( " or " (" with " ( " -- ie whitespace on both sides
Same is for ")"
Is there a way ( may be with eregi_replace ) to do both braces in 1-2 lines?