Link to home
Start Free TrialLog in
Avatar of gagaliya
gagaliya

asked on

regular expression question, need expert help

Hello,  i need a regular expression expert help on the following, have tried many combinations none seem to work.  

I have a string in the format "blabla anythinggoes Jun09B blabla"
need 2 regular expressions that read this string and returns

1) 06  (logic: find Jun then convert it to 06, need all 12 months, ie Jan becomes 01, Feb becomes 02 etc..)

2) 09 (logic: just return the 09 in Jun09B,  if it's Jun10D, it will return 10, if it's May08Z, it will return 08, etc..just return the 2 digit)

thank you
ASKER CERTIFIED SOLUTION
Avatar of Lee Wadwell
Lee Wadwell
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gagaliya
gagaliya

ASKER

Sorry guys if i wasnt clear,  i am not looking for perl code, just pure regular expression. It's actually is used in a custom engine, it takes the string and the regular expression as 2 inputs, use it to evaluate the string, and spits out the output.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok