Excerpt | ||
---|---|---|
| ||
replaceFirst(listToCheck, findPattern, replacementString) Replace the first occurrence of a pattern with a replacement string. |
Function: replaceFirst()
Replace the first occurrence of a pattern with a replacement string.
...
replaceFirst() removes the first string of 8 digits from file names contained in the attribute in.fileName.
If in.fileName = "20060712file-proc20070103-1263", this returns "file-proc20070103-1263".
...