Select to view content in your preferred language

Regular Expression

842
1
01-08-2020 02:14 AM
M_DJohnson
Occasional Contributor

In the text filed want to check first two character must be a numeric for that configured [0-9]{2}.

1. 34L - Correct

2. 4L - Wrong

but for both records it is marking an error in the DataReviewer

0 Kudos
1 Reply
KumarGaurav
Esri Contributor

Hi M D Johnson,

Data Reviewer check uses the ATL regular expression engine, so some of the metacharacters have a different meaning in ATL regular expressions., however you can achieve the results mentioned in the post using the following regular expression :

[0-9][0-9]L

For more reference please see the following help topic: Validating string values—Help | ArcGIS Desktop 

Thanks,

Kumar