Visual Studio Find-Replace tool using Regex Capturing -


i wondering if can use regex expression in visual studio's find , replace tool (edit -> quick replace), find:

system.nullable(of x)

and replace with:

x?

where x object type such date, guid, etc... (the code written in visual basic)

example 1: regex should able find: system.nullable(of guid), , replace with: guid?

example 2: same regex should able find: system.nullable(of integer), , replace with: integer?

so can use find-replace regex expression change:

public property id() system.nullable(of guid)

to:

public property id() guid?

to stop visual studio spamming me "name can simplified"

find system\.nullable\(of (\w+)\) , replace $1?


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -