Anonymous user
Regular expressions: Difference between revisions
m
→{{header|C}}
m (→{{header|REXX}}: remformatted the comments. -- ~~~~) |
m (→{{header|C}}) |
||
Line 296:
{
//fprintf(stderr, "%d, %d\n", substmatch[0].rm_so, substmatch[0].rm_eo);
char *ns =
(strlen(t1) - substmatch[0].rm_eo) + 2);
memcpy(ns, t1, substmatch[0].rm_so+1);
|