11 lines
329 B
Dart
11 lines
329 B
Dart
// Define a function.
|
|
void printInteger(int aNumber) {
|
|
print('The number is $aNumber.'); // Print to console.
|
|
}
|
|
|
|
// This is where the app starts executing.
|
|
void main() {
|
|
String dataMatrix = "00000046208262nZ2qnLHODVFWktT";
|
|
String numberText = dataMatrix.replaceAll(RegExp("[a-zA-Z]"), '');
|
|
print(int.parse(numberText));
|
|
} |