Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Erlang Programming/Using regexp

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Regular Expressions 2> re:run("hello world","w.+d"). {match,[{6,5}]} The regular expression, "w.+d" matches the string, "hello world" at location 6 for 5 chars. 9> re:replace("10203040","([2-4]0)+","01",[{return,list}]). "1001" Makes a substitution, replacing "203040" with "01".