Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. axnpictures

    using regexp in a foreach loop

    One more question... Using the regular expression above, I can't show the messages from the message tag if there is more than one word inside the tags separated with space. For example <message>Message goes here</message> won't be shown with "<(message)>(.*?)</message>".
  2. axnpictures

    using regexp in a foreach loop

    Hmmm, well, I was about to say "I don't know it just won't work". But your example works. Now, I removed some lines from my xml file. The <?xml version... one and the <data></data> tags. Inside those tags are the <name></name> ones. Now it's working! It was working before as well but not inside...
  3. axnpictures

    using regexp in a foreach loop

    I want to print a regexp variable inside a loop from an xml file. I'm reading the xml file through http. This an example of my xml file: <name>foo</name> <name>foo1</name> I'm using this tcl code: foreach line $html { regexp "<(name)>(.*?)</name>" $line dummy tag name } The problem is, I can...

Part and Inventory Search

Back
Top