No, there are no non-greedy quantifiers in POSIX regular expressions. But there is a library that provides perl-like regular expressions for C: http://www.pcre.org/
More Related Contents:
- How do I make this Linux program compile? [closed]
- What is the difference between sigaction and signal?
- Regular expressions in C: examples?
- Return value range of the main function
- What is the equivalent to Posix popen() in the Win32 API?
- Connecting n commands with pipes in a shell?
- Atomicity of `write(2)` to a local filesystem
- GCC with -std=c99 complains about not knowing struct timespec
- Does printf always flush the buffer on encountering a newline?
- What does “#define _GNU_SOURCE” imply?
- POSIX API call to list all the pthreads running in a process
- Is there a way to flush a POSIX socket?
- How to get the current time in milliseconds from C in Linux?
- What is the proper #include for the function ‘sleep()’?
- How to redirect the output back to the screen after freopen(“out.txt”, “a”, stdout)
- Recursive mkdir() system call on Unix
- Regular expression for a string literal in flex/lex
- Linux/POSIX equivalent for Win32’s CreateEvent, SetEvent, WaitForSingleObject
- How to use nanosleep() in C? What are `tim.tv_sec` and `tim.tv_nsec`?
- How do I find the current machine’s full hostname in C (hostname and domain information)?
- Regex Non-Greedy (Lazy)
- Is it possible (and safe) to make an accepting socket non-blocking?
- Why does wait() set status to 255 instead of the -1 exit status of the forked process?
- How to convert from UTC to local time in C?
- Difference between C standard library and C POSIX library
- Linux shared memory: shmget() vs mmap()?
- Checking if errno != EINTR: what does it mean?
- Regex to pull out C function prototype declarations?
- How to know if a Linux system call is restartable or not?
- Regex.h for windows