Login
|
Signup
langref.org
-
fsharp
add..
all
clojure
cpp
csharp
erlang
fantom
go
groovy
haskell
java
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Regex
Searching
Check if a string contains a match to a regular expression
Display
"ok"
if
"abc 123 @#$"
matches
/\d+/
fsharp
if (Regex.IsMatch("abc 123 @#$", "\\d+")) then printfn "ok"
#light
open System
open System.Text.RegularExpressions
if (Regex.IsMatch("abc 123 @#$", "\\d+")) then printfn "ok"
Submit a new solution for
fsharp
There are 16 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)