unix - Why does searching for .* not work in UltraEdit? -


in ultraedit enabled unix-style regular expressions, finding .* not work; .+ find something.

why, , how can make work?

i should add working ultraedit 11.10b. there known bug or something?

. matches character except carriage return , line-feed.

* matches preceding expression 0 or more times, non greedy.

non greedy means less characters possible positive result expression.

the expression .* makes sense between 2 fixed strings. cannot use .* nothing matches positive match expression, too. character except line terminators 0 times enough positive result expression , therefore using .* matches nothing. or in other words: nothing found positive result regular expression .*.

also word.* , .*word not useful expressions word found or unpredictable results.

with .* or .+ within search string find engine needs fixed string before , after, or non matching anchor ^ or $ know start selecting character except line terminators 0 respectively 1 or more times.

by way: unix regular expression engine of ue v11.10b ultraedit regular expression engine used syntax of perl regular expression. explains why unix regular expression engine supports ultraedit regular expression engine supports, different set of special characters. should think upgrade of ultraedit current version 21.10 has real perl regular expression engine in latest version included powerful capabilities of regular expression engine.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -