I am looking for the Java equivalent of these JavaScript regex patterns:
"abcde".search(/c/); // Output: 2
/[^\d]/.test("123bed567"); // Output: true
"asdgh".match(/\d/); // Output: null
It was a simple one-line solution in JavaScript (and I know it in PHP as well), so I'm hoping for something similar in Java.