+ Reply to Thread
Results 1 to 2 of 2

Thread: Reject a text in REGEX

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    41

    Reject a text in REGEX

    I am trying to reject a text that has seq= or app= Where it gets tricky is I need elements
    with q=something or p=something.
    The seq= part of the string is always preceded an & and app= is always preceded by a ?

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    34
    Here is the Best Pattern for that :
    Code:
    [\?&](?:seq|app)=
    This will reject any string that has : ? or & followed by either app= or seq=

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts