I need to build a single regex to match this 2 kinds of line:
1)SBNID=304,MENAME=RV0714,MEID=122,CELLID=4,CELLNAME=LRV0714D
2)MBTS_ACN1_RJ/ETHPORT:Cabinet No.=0, Subrack No.=0, Slot No.=7, Port No.=0, Subboard Type=BASE_BOARD
The output must be: For the first (1):
SBNID , MENAME , MEID , CELLID , CELLNAME
For the second (2):
Cabinet No. , Subrack No , Slot No. , Port No , Subboard Type
PS: Since my code process each input by time, I need to process first the input one, then input 2, not both together
I already tried:
(?<![^:,])[^=]+
Works for the second case, but for the first case it not returns SBNID
I am using pcre(php) regex