In Java - I need to search/validate an input string for a number or for a specific string. it must be one of them. For example - If I have this input lines:
cccccccc 123 vvvvvvvvv jhdakfksah
cccccccc ABC vvvvvvnhj yroijpotpo
cccdcdcd 234 vcbvbvbvbv lkjd dfdggf
ccccbvff ABC jflkjlkjlj fgdgfg
I need to find 123, ABC, 234, ABC
to look for the number I could use regex: "\d+" but to look for either of them How can I combine them?