There is no point in spending too much time on your attempt, unless you really, really need to know why it didn't work there are already several reasons we pointed out. Long story short - the correct way to do what you need is what Mr. You are looking for a character that is not alnum and not space and not punct. You wanted something that implements the "and" logical operator, not the "or". The second error, beyond the first one (which is fatal by itself), is one of logic. There is no alternation in bracketed expressions - and you shouldn't need it, the syntax allows you "one choice of many" without using any operators. The pipe symbol does not have its "usual" meaning in a character class. Kulash already explained the problem with that).įirst, you have the main part of the regular expression, using pipe symbol for regexp alternation, in square brackets - making it a character class (bracketed expression). What you posted should work, too, but it's needlessly complicated.Īctually, no - what you (the original posted) tried is incorrect, not just complicated - and for at least two reasons, even beyond the leading dot (Mr. 1.7K Training / Learning / Certification.165.3K Java EE (Java Enterprise Edition).7.8K Oracle Database Express Edition (XE).3.7K Java and JavaScript in the Database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |