Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What does Regex Index Reference Mean When Referring to Single Quotes

I was playing around with inputting regex patterns in https://regex101.com/
Beginning with the most simple of examples (see screenshot image below) I don’t understand the explanation for my pattern '.' (all characters except line terminators) I am assuming that the index values provided are referencing number base terminology. That is 39 base 10, 27 base 16 & 47 base 8?

If I am correct then what is this indexing telling me?

I understand start indexes as used in the following: MathWorks regexp But this particular example, I have posted here, has regex101 referencing the single quote itself.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Perhaps my question is a little esoteric but I would appreciate any suggestions.

enter image description here

>Solution :

The quote char ', the ASCII code representation’s are either:
39 is decimal,
27 is hex,
47 is octal

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading