Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Regular-expressions/F-Sharp/regular-expressions.fs
Normal file
11
Task/Regular-expressions/F-Sharp/regular-expressions.fs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
open System
|
||||
open System.Text.RegularExpressions
|
||||
|
||||
[<EntryPoint>]
|
||||
let main argv =
|
||||
let str = "I am a string"
|
||||
if Regex("string$").IsMatch(str) then Console.WriteLine("Ends with string.")
|
||||
|
||||
let rstr = Regex(" a ").Replace(str, " another ")
|
||||
Console.WriteLine(rstr)
|
||||
0
|
||||
Loading…
Add table
Add a link
Reference in a new issue