Unix Programming - regex did work, but regexec doesn´t work!

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2006 > regex did work, but regexec doesn´t work!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author regex did work, but regexec doesn´t work!
ciriglezglez@gmail.com

2006-11-22, 1:17 pm

Hi, everyone

I used regex/regcmp to search for a string in a regular expression, and
it worked. However, now i have to use regexec/regcomp to search for the
same string in the same regular expression, and it doesn=B4t work. I=B4m
using binary strings

For example, the following string:
^A^A ^DB_S =FF^L^W
matches the regcmp compiled pattern: ^TB^T_^TS4

However, the regcomp compiled pattern is:^P^N^CB_S^Q^_. And this
pattern doesn=B4t match the string I need to!.

Maybe i=B4m using regexec/regcomp in a wrong way...

Can anybody help me?
Thanks in advance

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com