I have a question with respect to a regular expression in VBScript. I'm trying to do a look ahead and if TRUE perform some item and if false perform another item and then just do a substitution at the end regardless of true or false at that point.
I'm trying to do something like:
Basically, if the string being evaluated has a "/" and a "@" then I want it to perform ([\s\""\d:]?) otherwise
([\s\""\d:]). The difference between the latter 2 statements is that I allow for 0 to a 1 of space at the end (the "?") or the alternative is that I do not allow any space. (nothing there).
I'm doing a lookahead for the "/" and "@" but how to I get it to do the TRUE ELSE/OR FALSE. Notice I do have the "|" in there to separate the 2 statements.
I am doing this in VBScript.
Any ideas or assistance would be greatly appreciated.
Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!
Well hello again! Glad to see you've made it this far without giving up. In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful. Just in case you stumbled onto th…
I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook ?”. I replied back and told Paul that using automation, in this case scripting, to add files t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern: