I would like to find a string that starts and ends with a specific special character but skipping when another specific charachter. I want to find any string that starts with “hello”and ends with a dot “.” but not like “here end.” this must be skipped when “here end” is preceding the dot “.”. Sample : I tried the following
Tag: regex-group
Regular expression to match optional patterns
I know that Regex is a pretty hot topic and that there’s a plethora of similar questions, however, I have not found one which matches my needs. I need to check the formatting of my string to be as follows: All line must start with 5 digits. Characters 6 to 12 must be white space. Character 13 must be either