BookmarkSubscribeRSS Feed
SIgnificatif
Quartz | Level 8

Hi All,
Anybody knows how to match this in one regexp ?

[Home[0-8]] or Home[0-8]


So far tried this but it's not working ..
.*?\([Home[0-8]|[(Home[0-8]]).?\].*

 

  • the first one is between square brackets 
  • after the numbers there could be . or , ( period or comma)
  • How to apply the non greedy matching ? if both found ?

Thanks for your input.

 

1 REPLY 1
PeterClemmensen
Tourmaline | Level 20

Something like this?

 

\[*Home\[0-8[,.]*\]

 

Also, what do you mean by 'if both found'? Can the two be in a single string or?