#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Question 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?
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,122
    Rep Power
    9398
    Originally Posted by champlow007
    I need to make a regex that takes in various 10-K 10-Q 10-K/A or 10-Q/A statements.
    Huh?

IMN logo majestic logo threadwatch logo seochat tools logo