X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=docs%2FGoalfile.pod;fp=docs%2FGoalfile.pod;h=d58993e968d13982ad37b141f69db60660e6f8a5;hb=7c0f0662d00ba21743fdb2bc538e89065c0765ad;hp=da4b1428ba50093bc6691edc885054905f79105b;hpb=70c689283bb2c1ba07704be7562767daf82b4d46;p=goals.git diff --git a/docs/Goalfile.pod b/docs/Goalfile.pod index da4b142..d58993e 100644 --- a/docs/Goalfile.pod +++ b/docs/Goalfile.pod @@ -12,6 +12,19 @@ Goalfile - introduction, tutorial, and reference for writing goal files =head1 REFERENCE +=head2 Standard Functions + +=head3 subst (from, to, text) + +For example: + + subst ("aa", "AA", "aabbccaa") ⇒ "AAbbccAA" + subst ("a.*c", "b", "aaacac") ⇒ "bb" + +This function works something like make’s C function, except +that C is a regular expression, specifically a L +extended regular expression. + =head1 SEE ALSO L.