List of regular expressions for different purposes.

Use https://regex101.com/ to test and build regular expressions.

Get EUR and USD Value

(?:\$|€|USD|EUR)(\d+[,.]\d\d)|(\d+[,.]\d\d)\s?(?:\$|€|USD|EUR)
(?:https?:\/{2})?(?:w{3}.)((?:[a-zA-Z0-9]*)?\.?[a-zA-Z0-9]*\.[a-zA-Z]*)(?:\/[.a-zA-Z0-9]*)*

No www at beginning

(?:https?:\/{2})?(?:w{3}.)?((?:[a-zA-Z0-9]*)?\.?[a-zA-Z0-9]*\.[a-zA-Z]*)(?:\/[.a-zA-Z0-9]*)*

No subdomains

(?:https?:\/{2})?(?:w{3}.)?(?:[a-zA-Z0-9]*\.)?([a-zA-Z0-9]*\.[a-zA-Z]*)(?:\/[.a-zA-Z0-9]*)*
((http|ftp|https):\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])
((http|ftp|https):\/\/)([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])
Last modified 2022.01.01