Simple PHP Regular Expression help?

  • Thread starter Thread starter fastball1945
  • Start date Start date
F

fastball1945

Guest
I need help parsing a variety of strings

string1(string2) string3

"string1" will always be there.
"(string2)" may or may not be there.
" string3" may or may not be there (notice the space).

I have tried a number of ways but cant seem to figure out this simple thing.

Thanks in advance!
 
Back
Top