regex

  1. A

    Solved expr(1) do not honor \+ regex

    Hello, On Freebsd 14.1-Release, I tried expr "Hello 7.1" : '.* \([.0-9]\+\)' which returns empty string, while \+ replaced by * returns 7.1. The man page says expressions should be basic regular expression, and I found that \+ is. Is it a bug? A mistakes I did? Thanks for your help.
  2. L

    Shell regexp and shell script changing url links to base64 in css files

    so this script can alter the url to data64 encoding by matching in css file background-image: url(afdsf.png). some contribute this: echo 'background-image: url("../images/doesntmatter/imgDoesNotMatter.png");' | sed -r 's,background-image\s*:\s*url\("(.+)"\);,\1,'...
  3. csptra

    Solved perl regex

    Hello, I admit, I am not proficient with regex. I'm trying to match a pattern taken from the output of reformime. (see below). I am not having much luck. When I can get it to work, then it matches everything. I think this is due to the working pattern matching the longer pattern. Sample...
Back
Top