Regex tester
Pattern
Input
Objective. Get numbers. 

P&OCrew/MI/287 - Normal
P&OCrew/MI/287123456789 - Extra long numbers
P&OCrew/287 - No word grouping
P&OCrew/ANYTHING!@#$1234_/287 - Will take anything except a "/"

Ref.: P&OCrew/LBS/287
/45/P&OCrew/LBS/287
Ref.: P&OCrew/MCCC/287


Options
Replacement
Click the context tab to see replacements.
7 matches found in about 1 millisecond.
IndexPositionMatched String
039287
164287123456789
2107287
3157287
4216287
5237287
6261287
Objective. Get numbers. 
​
​P&OCrew/MI/287 - Normal
​P&OCrew/MI/287123456789 - Extra long numbers
​P&OCrew/287 - No word grouping
​P&OCrew/ANYTHING!@#$1234_/287 - Will take anything except a "/"
​
​Ref.: P&OCrew/LBS/287
​/45/P&OCrew/LBS/287
​Ref.: P&OCrew/MCCC/287
​
​
  1. Objective. Get numbers.

    P&OCrew/MI/
  2. - Normal
    P&OCrew/MI/
  3. - Extra long numbers
    P&OCrew/
  4. - No word grouping
    P&OCrew/ANYTHING!@#$1234_/
  5. - Will take anything except a "/"

    Ref.: P&OCrew/LBS/

  6. /45/P&OCrew/LBS/

  7. Ref.: P&OCrew/MCCC/
  8. whitespace