1

HOW TO - Bash REGEX - Print Error when More then One Occurence is Found Consecutively?

view story
linux-howto

http://www.unix.com – Hello All, Bash Version: 4.1.10(1) I'm trying to "verify" some user input. The User input will contain the "Absolute Path" a "Command" and any "Options" of that Command. For Example, say the user's input is: Code: user_input="/usr//local/myExample/check_process -p 'java' -w 10 -c 20" I can't get my REGEX Pattern below to print an error when, say for example the user accidentally inputs 2 "/" consecutively by accident... My REGEX Pattern/Code is: *Notice the double "//" after "/usr"... Code: user_i (HowTos)