I want to extract a number (integer, decimal or 12:30 formats) from a string. I have used the following RegEx but to no avail:
final RegExp numberExp = new R
For one-line strings you can simply use:
final intValue = int.parse(stringValue.replaceAll(RegExp('[^0-9]'), ''));