![]() |
|
#1
|
|||
|
|||
help with gnu regular expressionsHi, I am trying to use POSIX regular expressions...I am quite new to C and it is hard to find examples of their usage.
I have written a simple program which reads in an XML file and should match against different XML/HTML constructs: e.g '<(\\w+)>' , '</(\\w+)>' and so on. It compiles and must only be missing something minor. At present it reports no matches found for any line in any html/xml document it is run against. The file can be found at rose.clear.bash.sh I'm sure someone who knows about these things would only need to look at it for 2 secs to tell me what is wrong. I greatly appreciate advice that anyone can give me, thanks, Henry Widd |
|
#2
|
||||
|
||||
|
Hello henrywidd,
How do you know that this is POSIX and not PCRE? Anyway, try these patterns out and see if they make a difference: Opening tag: Code:
Closing tag: Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| regular expressions | erniegerdie | MySQL / PHP Forum | 6 | 08-Mar-2004 06:46 |
| preg_replace question... | Perculator | MySQL / PHP Forum | 6 | 16-Feb-2004 22:25 |
| preg_replace + regular expression | EasyExpat | MySQL / PHP Forum | 4 | 10-Jul-2003 05:36 |
| Regular Expressions question. | JdS | MySQL / PHP Forum | 3 | 04-Nov-2002 15:04 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The