Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2013
    Thanked 1 Time in 1 Post

    Regex expression help!

    I have a regexp that I'm trying to figure out how to pull from a file. First I want to find a <data> tag.

    The next part is trickier and I would appreciate your help. There is a value in this data tag that I want to match. If the tag matches, I want to take all the data from <data> to </data>. Pseudo coding looks like this:
    string query;
    list list = getRegEx(<data> to </data>);
    for(i in list){
    if (i's value == query){
    append <data> to </data> in a separate file.
    If you could help me out that would be awesome.

  2. #2
    New Coder
    Join Date
    Sep 2013
    Thanked 2 Times in 2 Posts
    use this regex:


Tags for this Thread

Posting Permissions

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