So I need a Regex to match the ASCII character STX(Start Of Text) which is number 2 on ASCII Table. I tried
^ as Regex101.com suggest for start of text but it was unsuccessful.
Then I tried
[[:ascii:]] which was matching for all ASCII characters. Is there any way to match a specific ASCII character using Regex? eg:
[ASCII(2)]. I know I can do that with
Java etc but I have to do it with Regex.