Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

regex dart

RegExp regExp = new RegExp(
  r"/^WS{1,2}://d{1,3}.d{1,3}.d{1,3}.d{1,3}:56789/i",
  caseSensitive: false,
  multiLine: false,
);
print("allMatches : "+regExp.allMatches("WS://127.0.0.1:56789").toString());
print("firstMatch : "+regExp.firstMatch("WS://127.0.0.1:56789").toString());
print("hasMatch : "+regExp.hasMatch("WS://127.0.0.1:56789").toString());
print("stringMatch : "+regExp.stringMatch("WS://127.0.0.1:56789").toString());

allMatches : ()
firstMatch : null
hasMatch : false
stringMatch : null
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #dart
ADD COMMENT
Topic
Name
3+9 =