
September 6th, 2012, 03:09 PM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 1
Time spent in forums: 9 m 55 sec
Reputation Power: 0
|
|
PHP - Brackets or Parenthesis with forward slashes and OR statements
I need to make a regex that takes in various 10-K 10-Q 10-K/A or 10-Q/A statements.
"#... 10-[Q|K] ...#"
"#... 10-(Q|K) ...#"
Will work but I can't figure out how to make it so that K/A and Q/A work also. I have tried this:
"#... 10-[Q|K|Q/A|K/A]<td/>(.*?) ...#"
"#... 10-[Q|K|(Q/A)|(K/A)]<td/>(.*?) ...#"
"#... 10-(Q|K|Q/A|K/A)<td/>(.*?) ...#"
Nothing seems to be getting me the results I need. Can someone help?
|