oggiemc
asked on
PCRE regular expression
Hello all,
Im new to PCRE regex syntax and i was wondering could i get a bit of help. Im trying to match the following target strings:
finance | f.inance | fi.nance | fin.ance etc
i.e the full stop can occur anywhere in the the target string. And i want the regex to match all possibilities.. How can i achieve this with one regex?
Thanks,
Im new to PCRE regex syntax and i was wondering could i get a bit of help. Im trying to match the following target strings:
finance | f.inance | fi.nance | fin.ance etc
i.e the full stop can occur anywhere in the the target string. And i want the regex to match all possibilities.. How can i achieve this with one regex?
Thanks,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for replies kaufmed..You have given me a few options there..I will leave question open for the meantime just to see if there are any other suggestions..
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
[.*^%$£]?f[.*^%$£]?i[.*^%$
Which begins to look quite messy..is there no way of putting the search characters i.e [.*^%$£]at the end of the regex and then specify a global search in the target string?