Unix and Linux Discussions Tagged with substring |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
2,628 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
7,539 |
Shell Programming and Scripting |
|
|
|
6 |
6,846 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,754 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
8,610 |
Shell Programming and Scripting |
|
|
|
6 |
7,766 |
Shell Programming and Scripting |
|
|
|
3 |
3,310 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,710 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,858 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,960 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,392 |
Shell Programming and Scripting |
|
|
|
14 |
8,657 |
Shell Programming and Scripting |
|
|
|
1 |
1,634 |
Shell Programming and Scripting |
|
|
|
7 |
3,485 |
UNIX for Dummies Questions & Answers |
|
|
|
32 |
8,192 |
Shell Programming and Scripting |
|
|
|
2 |
11,556 |
Shell Programming and Scripting |
|
|
|
4 |
1,411 |
Shell Programming and Scripting |
|
|
|
3 |
2,960 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,534 |
Shell Programming and Scripting |
|
|
|
2 |
19,147 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,466 |
Solaris |
|
|
|
4 |
3,430 |
Programming |
|
|
|
5 |
12,184 |
UNIX for Dummies Questions & Answers |
|
|
|
20 |
24,902 |
Shell Programming and Scripting |
|
|
|
8 |
7,935 |
Linux |
|
|
|
11 |
5,729 |
Shell Programming and Scripting |
|
|
|
9 |
15,069 |
Shell Programming and Scripting |
|
|
|
0 |
2,006 |
Shell Programming and Scripting |
|
|
|
8 |
36,423 |
Shell Programming and Scripting |
|
|
|
7 |
15,860 |
Shell Programming and Scripting |
|
|
|
1 |
4,239 |
Shell Programming and Scripting |
|
|
|
11 |
3,887 |
Shell Programming and Scripting |
|
|
|
2 |
7,873 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
15,155 |
Shell Programming and Scripting |
|
|
|
2 |
2,344 |
Shell Programming and Scripting |
|
|
|
1 |
8,863 |
Shell Programming and Scripting |
|
|
|
1 |
3,780 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,510 |
Shell Programming and Scripting |
|
|
|
25 |
7,383 |
Shell Programming and Scripting |
|
|
|
3 |
7,110 |
Shell Programming and Scripting |
PCRE_GET_SUBSTRING(3) Library Functions Manual PCRE_GET_SUBSTRING(3)
NAME
PCRE - Perl-compatible regular expressions
SYNOPSIS
#include <pcre.h>
int pcre_get_substring(const char *subject, int *ovector,
int stringcount, int stringnumber,
const char **stringptr);
DESCRIPTION
This is a convenience function for extracting a captured substring. The arguments are:
subject Subject that has been successfully matched
ovector Offset vector that pcre_exec() used
stringcount Value returned by pcre_exec()
stringnumber Number of the required substring
stringptr Where to put the string pointer
The memory in which the substring is placed is obtained by calling pcre_malloc(). The convenience function pcre_free_substring() can be
used to free it when it is no longer needed. The yield of the function is the length of the substring, PCRE_ERROR_NOMEMORY if sufficient
memory could not be obtained, or PCRE_ERROR_NOSUBSTRING if the string number is invalid.
There is a complete description of the PCRE native API in the pcreapi page and a description of the POSIX API in the pcreposix page.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWpcre |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for PCRE is available on http://opensolaris.org.
PCRE_GET_SUBSTRING(3)