json validation online code example
Example 1: JSON validate
S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
[itm[0] for itm in S.str.findall('^[Ff].*') if len(itm)>0]
Example 2: JSON validate
import numpy as np
df['first_five_Letter']=df['Country (region)'].str.extract(r'(^w{5})')
df.head()
Example 3: JSON validate
**Output:** ['Finland', 'Florida', 'france']