I want to get a specific word with number from a string for example
ABC312 is the string I want to filter...
or
ABC 312 is the string I want to filter...
Fromt eh above string I want to get "ABC" with following "312" (In the above string ABC will always remain same, it can be case-insensitive but the number will change...) it can be ABC143, ABC001, ABC311, ABC145 etc..
preg_match( '/ABC\s*[0-9]+/' );