I’m trying to create a regex that matches strings that have /x+any number/ in them, where anything can be written before or after that.
I tried creating the following regex .*/x+\\d*/.*
An example of a string I’m trying to match is abc/x+10/tomorrow
Strings such as abc/x+/tomorrow should evaluate to false but is true.
+literal? Or are you saying you want any number ofxs as long as there is one. Also, are you sure that an input whit out any number is valid?Regex Demo .*\/x\+\d*\/.*\d*to\d+to make sure atleast one digit should be there