Created with <3 with dartpad.dev.
Created
February 9, 2023 10:11
-
-
Save manofi21/1e004ac37930b39e33f5cf6e11f0d2f9 to your computer and use it in GitHub Desktop.
Regex for check first chracter is gs:// or https
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| final autodata = "gs://aksdjasdsad"; | |
| final autoCheckRx = RegExp('(?:(?: G|^gs://)|(?: G|^https:))'); | |
| print(autoCheckRx.hasMatch(autodata)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment