A silly question, I am not sure what is wrong in the following javafx regex syntax. Netbeans complains illegal escape character in whole of this regex string,
var pattern:String = "(\/S*)(ftp|http|https):\/\/(\w+:\{0,1\}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?";
Any help is greatly appreciated. Thanks a bunch.
Cheers, Abi
Try this double \\ for \
var pattern:String = "(\\/S*)(ftp|http|https):\\/\\/(\\w+:\{0,1\}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\-\\/]))?";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With