Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

regex to put a {jtag} pattern into an array

Last post 07-02-2009, 9:28 AM by ddrudik. 1 replies.
Sort Posts: Previous Next
  •  07-02-2009, 1:57 AM 54499

    regex to put a {jtag} pattern into an array

    I need a regex to put into an array all the text that starts with R1Y2A3N and ends with R1Y2A3N.....
    R1Y2A3Ne2p0YWc6cGFyYW0gbmFtZT12ZW5kb3JOYW1lfQ==R1Y2A3N

    Example, I have a variable like this:

    $variable = 'Hello R1Y2A3Ne2p0YWc6cGFyYW0gbmFtZT12ZW5kb3JOYW1lfQ==R1Y2A3N and you!';

    so, R1Y2A3Ne2p0YWc6cGFyYW0gbmFtZT12ZW5kb3JOYW1lfQ==R1Y2A3N  should be put into an array....
     
    please help me with this... thanks! 
  •  07-02-2009, 9:28 AM 54503 in reply to 54499

    Re: regex to put a {jtag} pattern into an array

    R1Y2A3N(.|\n)*?R1Y2A3N

    or

    R1Y2A3N.*?R1Y2A3N

    enabling singleline option so that "." matches \n


View as RSS news feed in XML