vba regular expression - 18May2021 what will be pattern

Mallesh23

Well-known Member
Joined
Feb 4, 2009
Messages
976
Office Version
  1. 2010
Platform
  1. Windows
Hi Team,

Please suggest Regular expression.


xxxxxxxxxx 18May2021 zzzzzzzz First two Integer, 3 letter strings , Year 4 digit.
yyyyyyyyyy 05JUN2021 zzzzzzzz

my attempt like this [d[0-9]{2}\ d[A-Z]{3}\D[0-9]{2}


Thanks
mg
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi,​
as no needs RegExp here with VBA basics text functions …​
 
Upvote 0
Hi Starc,

Just for learning purpose, is my above expression correct.
or suggest what will be the pattern.


Thanks
mg
 
Upvote 0
As I can't see any benefit to maybe slow down your VBA procedure with RegExp instead of an easy direct VBA basics text function …​
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top