The Question Mark makes the previous optional

I think it would make more since written like this using "Zero or More" vs 
"One or More". Don't think you'd need the Dollar Sign. Just my 2¢

\\.*

On Thursday, December 19, 2019 at 12:00:20 PM UTC-5, Howard wrote:
>
> I am new both to BBEdit and to GREP and have a question about this GREP 
> code:
>
> \\.+?$
>
> It is used in Search's Find box to remove all text from the backslash on, 
> and is accompanied by no value in the Replace box.
>
> *Sample Input*
> Tyler Rogers\rogerty01
>
> *Desired Output*
> Tyler Rogers
>
> I understand that the two backslashes seek the backslashes in my text, 
> that the "." seeks "any character except a ‘hard’ line break" after the 
> backslash, and that the "$" continues the search to the line's end. But 
> what does the question mark do?
>
> Howard
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6b12a217-127d-4ea6-a825-1a56cb5ce434%40googlegroups.com.

Reply via email to