Hi,
I think I need help with Regex guys,
Some text as an example:
I am trying to match "12+Word:"
This is what I've tried:
it works on the web site https://regex101.com using PCRE, but with my shell script(bin/sh) it doesn't or even just in command line directly.
On Internet I found the following link, it seems not even referenced:
Am I searching for something that is not implemented in ERE ?
If it's the case, how can I replace the key word newline '\n' with something equivalent that could work with grep, because what I found so far was not successful (eg: .\. or [.\..]). May be the logic I use is just not right.
Thank you.
EDiT: Grammar .
I think I need help with Regex guys,
Some text as an example:
12
Word: The time is not what you think it is
no it is not.
I am trying to match "12+Word:"
This is what I've tried:
grep -E "^[\s]{1}[0-9]{1,2}[\n][A-Z]{1}[a-z]+:{1}"
it works on the web site https://regex101.com using PCRE, but with my shell script(bin/sh) it doesn't or even just in command line directly.
On Internet I found the following link, it seems not even referenced:
Regular Expressions Reference: Shorthand Character Classes
Reference of the various syntactic elements that can appear in regular expressions
www.regular-expressions.info
Am I searching for something that is not implemented in ERE ?
If it's the case, how can I replace the key word newline '\n' with something equivalent that could work with grep, because what I found so far was not successful (eg: .\. or [.\..]). May be the logic I use is just not right.
Thank you.
EDiT: Grammar .
Last edited: