I am querying influx D.B. as shown below,
select * from measurement where '/cda/stats/@name' =~ /cda\/stats.*/ limit 5;
Above query is working fine, but when i try to specify square brackets in the query string it is not working, for e.g. "/cda/stats/[name='set']
select * from mgmgrand where '/cda/stats/@name' =~ /cda\/stats[name='set'].*/ limit 5;
Not sure how to escape square brackets in the above query.
Back slash "\" is not working with square brackets.