Jump to content
Sign in to follow this  
Mecrazycoder

Regex

Recommended Posts

Mecrazycoder

Please anyone tel me regex for retrieving edyditye.default from the line "17-11-2010 15:03 <DIR> edyditye.default". Thanks in advance


[size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent]

Share this post


Link to post
Share on other sites
Varian

Here is one way

$Text = "17-11-2010 15:03 <DIR> edyditye.default"
$Text = StringRegExpReplace($Text, "(?i).*<DIR> ", "")

Share this post


Link to post
Share on other sites
MrMitchell

Please anyone tel me regex for retrieving edyditye.default from the line "17-11-2010 15:03 <DIR> edyditye.default". Thanks in advance

Can you be more specific? If you already know you need "edyditye.default" from the line, why do you need a RegEx? For instance, are you maybe trying to find the "edyditye.default" then find its corresponding date and time? Know what I mean?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×